cpython/Lib/compression
Serhiy Storchaka a844747b07
gh-117404: Add structured version info for compression modules (GH-150567)
Add constants which provide information about the version of the
compression library used for building the module and the version
actually loaded:

* zlib: ZLIB_VERSION_INFO, zlib_version_info, ZLIBNG_VERSION_INFO,
  and zlib_version as an alias of ZLIB_RUNTIME_VERSION
* bz2: bzlib_version, bzlib_version_info
* lzma: LZMA_VERSION, lzma_version, LZMA_VERSION_INFO, lzma_version_info
* compression.zstd: ZSTD_VERSION, ZSTD_VERSION_INFO

Make compression.zstd.zstd_version_info a named tuple.

Co-authored-by: Claude Opus 5 (1M context) <noreply@anthropic.com>
2026-09-14 10:39:11 +03:00
..
_common
zstd gh-117404: Add structured version info for compression modules (GH-150567) 2026-09-14 10:39:11 +03:00
__init__.py gh-132983: Introduce compression package and move _compression module (GH-133018) 2025-04-27 14:41:30 -07:00
bz2.py gh-132983: Style improvements for compression.zstd (#133547) 2025-05-14 12:08:27 +00:00
gzip.py gh-132983: Style improvements for compression.zstd (#133547) 2025-05-14 12:08:27 +00:00
lzma.py gh-132983: Style improvements for compression.zstd (#133547) 2025-05-14 12:08:27 +00:00
zlib.py gh-132983: Style improvements for compression.zstd (#133547) 2025-05-14 12:08:27 +00:00