Skip to content

Conversation

StanFromIreland
Copy link
Member

@StanFromIreland StanFromIreland commented Oct 9, 2025

Also included, converting links to https and wrapping a long line.


📚 Documentation preview 📚: https://cpython-previews--139835.org.readthedocs.build/

Copy link
Member

@AA-Turner AA-Turner left a 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
Copy link
Member

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.

Suggested change
consult the `zlib manual <https://www.zlib.net/manual.html>`_ for authoritative
consult the `zlib manual <https://www.zlib.net/manual.html>`__ for authoritative

@StanFromIreland
Copy link
Member Author

Are these constants intended to be for public use? Especially with older modules, the underscore prefix convention hasn't been consistently used.

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).
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
The maximum window buffer size (power of 2).
The maximum window buffer size in bytes (power of 2).

Copy link
Member Author

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?

Copy link
Member

@vstinner vstinner left a 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.

@StanFromIreland
Copy link
Member Author

Thanks for the reviews Victor!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
awaiting merge docs Documentation in the Doc dir skip news
Projects
Status: Todo
Development

Successfully merging this pull request may close these issues.

4 participants