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
zlib.compressobj level default value documentation #70432
Comments
In the zlib.compressobj documentation the default value of the compress level is -1 while it is actually 6. patch is included |
I’m not sure that is perfectly correct. It really does default to -1, and that is passed to the underlying zlib library (-1 = Z_DEFAULT_COMPRESSION). It is the zlib library that decides that this means 6, but in theory I guess it could be configured or modified in the future with a different default. Perhaps we should clarify the text in the documentation (including the doc string) to say this instead? At the very least, the documentation should continue to say that -1 is acceptable, and what it means. |
I think that we can leave the level=-1 as the default in the documentation. What should be added is what Z_DEFAULT_COMPRESSION means. |
This version looks great to me. |
New changeset 650cf38fba28 by Martin Panter in branch '2.7': New changeset 950e0bfe94ae by Martin Panter in branch '3.5': New changeset 03708c680eca by Martin Panter in branch 'default': |
I also made a small change to the compressobj() doc string. |
Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.
Show more details
GitHub fields:
bugs.python.org fields:
The text was updated successfully, but these errors were encountered: