mirror of
https://github.com/python/cpython.git
synced 2025-08-03 08:34:29 +00:00
Issue #12306: Add ZLIB_RUNTIME_VERSION to the zlib module.
While we're at it, also document ZLIB_VERSION. Patch by Torsten Landschoff.
This commit is contained in:
parent
249ab5e8d1
commit
64d25ddb9c
4 changed files with 40 additions and 0 deletions
|
@ -122,6 +122,7 @@ The available exception and functions in this module are:
|
|||
won't fit into memory at once. The *wbits* parameter controls the size of the
|
||||
window buffer.
|
||||
|
||||
|
||||
Compression objects support the following methods:
|
||||
|
||||
|
||||
|
@ -217,6 +218,26 @@ Decompression objects support the following methods and attributes:
|
|||
seeks into the stream at a future point.
|
||||
|
||||
|
||||
Information about the version of the zlib library in use is available through
|
||||
the following constants:
|
||||
|
||||
|
||||
.. data:: ZLIB_VERSION
|
||||
|
||||
The version string of the zlib library that was used for building the module.
|
||||
This may be different from the zlib library actually used at runtime, which
|
||||
is available as :const:`ZLIB_RUNTIME_VERSION`.
|
||||
|
||||
.. versionadded:: 3.3
|
||||
|
||||
|
||||
.. data:: ZLIB_RUNTIME_VERSION
|
||||
|
||||
The version string of the zlib library actually loaded by the interpreter.
|
||||
|
||||
.. versionadded:: 3.3
|
||||
|
||||
|
||||
.. seealso::
|
||||
|
||||
Module :mod:`gzip`
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue