-
-
Notifications
You must be signed in to change notification settings - Fork 33.1k
zlib.rst
: Link to constants and deduplicate text
#140115
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
base: main
Are you sure you want to change the base?
Conversation
.. versionadded:: next | ||
|
||
.. function:: compress(data, /, level=-1, wbits=MAX_WBITS) | ||
.. function:: compress(data, /, level=Z_DEFAULT_COMPRESSION, wbits=MAX_WBITS) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Per the clinic, this is what it defaults to. Ditto below.
*strategy* is used to tune the compression algorithm. Possible values are | ||
:const:`Z_DEFAULT_STRATEGY`, :const:`Z_FILTERED`, :const:`Z_HUFFMAN_ONLY`, | ||
:const:`Z_RLE` (zlib 1.2.0.1) and :const:`Z_FIXED` (zlib 1.2.2.2). | ||
:const:`Z_RLE` and :const:`Z_FIXED`. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think there is no need to reference version here, the information is now provided in the doc of the constant.
Co-authored-by: Victor Stinner <[email protected]>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
Documentation for these constants was recently added.
📚 Documentation preview 📚: https://cpython-previews--140115.org.readthedocs.build/