-
-
Notifications
You must be signed in to change notification settings - Fork 35.3k
gh-117404: Add structured version info for compression modules #150567
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?
Changes from all commits
76354de
1175471
0c71967
a41ea82
a6b7099
a0aaa31
cd5aac2
6e04c64
95b58f7
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -307,6 +307,31 @@ One-shot (de)compression | |
| .. versionchanged:: 3.3 | ||
| Support for multi-stream inputs was added. | ||
|
|
||
|
|
||
| Miscellaneous | ||
| ------------- | ||
|
|
||
| Information about the version of the bzip2 compression library in use | ||
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Maybe clarify what "in use" means, as in other places we distinguish compile/run time.
Member
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. It repeats existing phrase from zlib.rst. What is your suggestion?
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. For |
||
| is available through the following constants: | ||
|
|
||
|
|
||
| .. data:: bzlib_version | ||
|
|
||
| The version string of the bzip2 compression library. | ||
|
|
||
| .. versionadded:: next | ||
|
|
||
|
|
||
| .. data:: bzlib_version_info | ||
|
|
||
| A named tuple containing the three components of the bzip2 compression | ||
| library version: *major*, *minor*, and *patch*. All values are integers. | ||
| The components can also be accessed by name, so ``bz2.bzlib_version_info[0]`` | ||
| is equivalent to ``bz2.bzlib_version_info.major`` and so on. | ||
|
|
||
| .. versionadded:: next | ||
|
|
||
|
|
||
| .. _bz2-usage-examples: | ||
|
|
||
| Examples of usage | ||
|
|
||
Uh oh!
There was an error while loading. Please reload this page.