Skip to content

Commit 658599c

Browse files
authored
gh-121028: Soft-deprecate sys.api_version (GH-136463)
1 parent 28153fe commit 658599c

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)