https://github.com/python/cpython/commit/7ed37e95c5ac4f502cfc366f7ea24ebdc48d077a
commit: 7ed37e95c5ac4f502cfc366f7ea24ebdc48d077a
branch: main
author: Stan Ulbrych <[email protected]>
committer: ambv <[email protected]>
date: 2026-10-21T02:36:53-07:00
summary:
gh-117404: Document preference for `zlib_version` over
`zlib.ZLIB_RUNTIME_VERSION` (#157816)
files:
M Doc/library/zlib.rst
diff --git a/Doc/library/zlib.rst b/Doc/library/zlib.rst
index 8a30a0ad4fc272..d1efb521633297 100644
--- a/Doc/library/zlib.rst
+++ b/Doc/library/zlib.rst
@@ -487,11 +487,14 @@ the following constants:
The version string of the zlib library actually loaded by the interpreter.
+ Prefer :const:`!zlib_version` over its :const:`!ZLIB_RUNTIME_VERSION` alias.
+
.. versionadded:: 3.3
The :const:`!ZLIB_RUNTIME_VERSION` constant.
.. versionadded:: 3.16
- The :const:`!zlib_version` alias.
+ The :const:`!zlib_version` constant; :const:`!ZLIB_RUNTIME_VERSION` is
now
+ an alias for it.
.. data:: ZLIB_VERSION_INFO
_______________________________________________
Python-checkins mailing list -- [email protected]
To unsubscribe send an email to [email protected]
https://mail.python.org/mailman3//lists/python-checkins.python.org
Member address: [email protected]