Skip to content

Commit a521d24

Browse files
committed
gh-121028: Soft-deprecate sys.api_version
1 parent 77fa7a4 commit a521d24

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

Doc/library/sys.rst

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2191,8 +2191,11 @@ always available. Unless explicitly noted otherwise, all variables are read-only
21912191

21922192
.. data:: api_version
21932193

2194-
The C API version for this interpreter. Programmers may find this useful when
2195-
debugging version conflicts between Python and extension modules.
2194+
The C API version, equivalent to the C macro :c:macro:`PYTHON_API_VERSION`.
2195+
Defined for backwards compatibility.
2196+
2197+
Currently, this constant is not updated in new Python versions, and is not
2198+
useful for versioning. This may change in the future.
21962199

21972200

21982201
.. data:: version_info

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy