-
-
Notifications
You must be signed in to change notification settings - Fork 33.1k
gh-101100: Document zlib
public constants to fix reference warnings
#139835
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
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.
Are these constants intended to be for public use? Especially with older modules, the underscore prefix convention hasn't been consistently used.
C.f. calendar for similar discussion about what we choose to document.
A
zlib's functions have many options and often need to be used in a particular | ||
order. This documentation doesn't attempt to cover all of the permutations; | ||
consult the zlib manual at http://www.zlib.net/manual.html for authoritative | ||
consult the `zlib manual <https://www.zlib.net/manual.html>`_ for authoritative |
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.
Note, bare links in source text are recognised by reST (unlike markdown), so this change is optional.
consult the `zlib manual <https://www.zlib.net/manual.html>`_ for authoritative | |
consult the `zlib manual <https://www.zlib.net/manual.html>`__ for authoritative |
See as they have references in the text (e.g., the compression levels), I would assume that was the intention. |
Co-authored-by: Hugo van Kemenade <[email protected]>
|
||
.. data:: MAX_WBITS | ||
|
||
The maximum window buffer size (power of 2). |
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.
The maximum window buffer size (power of 2). | |
The maximum window buffer size in bytes (power of 2). |
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 this wording is slightly misleading, what do others think?
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. I just left a minor suggestion.
Thanks for the reviews Victor! |
Also included, converting links to
https
and wrapping a long line.📚 Documentation preview 📚: https://cpython-previews--139835.org.readthedocs.build/