Content-Length: 1030 | pFad | http://github.com/python/cpython/pull/136463.patch
thub.com
From a521d24f54dea055d391129d84870d000617fa1b Mon Sep 17 00:00:00 2001
From: Petr Viktorin
Date: Wed, 9 Jul 2025 15:09:29 +0200
Subject: [PATCH] gh-121028: Soft-deprecate sys.api_version
---
Doc/library/sys.rst | 7 +++++--
1 file changed, 5 insertions(+), 2 deletions(-)
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
--- a PPN by Garber Painting Akron. With Image Size Reduction included!Fetched URL: http://github.com/python/cpython/pull/136463.patch
Alternative Proxies:
Alternative Proxy
pFad Proxy
pFad v3 Proxy
pFad v4 Proxy