https://github.com/python/cpython/commit/658599c15d13ee3a5cb56c3d9fccaa195465d4b5
commit: 658599c15d13ee3a5cb56c3d9fccaa195465d4b5
branch: main
author: Petr Viktorin <encu...@gmail.com>
committer: encukou <encu...@gmail.com>
date: 2025-07-21T14:22:48+02:00
summary:

gh-121028: Soft-deprecate sys.api_version (GH-136463)

files:
M Doc/library/sys.rst

diff --git a/Doc/library/sys.rst b/Doc/library/sys.rst
index 05bc7cfb9dc089..52f0af31c68726 100644
--- a/Doc/library/sys.rst
+++ b/Doc/library/sys.rst
@@ -2191,8 +2191,11 @@ always available. Unless explicitly noted otherwise, all 
variables are read-only
 
 .. data:: api_version
 
-   The C API version for this interpreter.  Programmers may find this useful 
when
-   debugging version conflicts between Python and extension modules.
+   The C API version, equivalent to the C macro :c:macro:`PYTHON_API_VERSION`.
+   Defined for backwards compatibility.
+
+   Currently, this constant is not updated in new Python versions, and is not
+   useful for versioning. This may change in the future.
 
 
 .. data:: version_info

_______________________________________________
Python-checkins mailing list -- python-checkins@python.org
To unsubscribe send an email to python-checkins-le...@python.org
https://mail.python.org/mailman3//lists/python-checkins.python.org
Member address: arch...@mail-archive.com

Reply via email to