-
-
Notifications
You must be signed in to change notification settings - Fork 31.8k
gh-117404: Add structured version info for compression modules #117405
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?
gh-117404: Add structured version info for compression modules #117405
Conversation
* Add named tuples zlib_version and zlib_runtime_version in the zlib module. * Add string BZLIB_VERSION and named tuple bzlib_version in the bz2 module. * Add strings LZMA_VERSION and LZMA_RUNTIME_VERSION and named tuples lzma_version and lzma_runtime_version in the lzma module.
How about we shorten the names, there is no need to repeat the module name in the name of the constant. |
Perhaps we should use the same prefixes we use for the corresponding
|
That'd take us in the wrong direction. These are for use by people writing Python code, not for use by people who build CPython. this is a bikeshed, we could also argue that constants must always be in CAPS and ask for |
Let continue the main design discussion on the issue, and only use PR for discussing minor implementation details. |
|
||
.. data:: BZLIB_VERSION | ||
|
||
The version string of the bzlib library. |
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 haven’t seen bz2 called bzlib before. It’s always bzip2, bz2-lib or libbz2.
📚 Documentation preview 📚: https://cpython-previews--117405.org.readthedocs.build/