-
-
Notifications
You must be signed in to change notification settings - Fork 31.9k
Remove unused indent_level from Modules/_json.c #95382
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
Maybe we need to decide not to implement it forever or should be implemented. |
If that helps, when indent is requested ( |
@corona10 Any updates on this? The proposal is to remove some dead and incomplete code from the json encoder C implementation that is either commented-out or only increments the indent (all decrements are commented-out) and eliminate an unused function parameter. Right now it uses the Python implementation when an indentation is requested. I can also update the C encoder to do the indentation correctly if that is the way to proceed. |
I think that this way the right way to do, would you like to update the C implementation with a benchmark? Thanks |
There are commits from 2009-05-02 calculating indent_level but not
using it to indent. There are some other commits from 2011-02-22
commenting out the code with the message "it does not work". Nobody cared
enough about it for 10 years, time to remove commented code and leftovers.
Linked PRs
The text was updated successfully, but these errors were encountered: