[3.14] gh-121028: Soft-deprecate sys.api_version (GH-136463) (GH-136928)

(cherry picked from commit 658599c15d)

Co-authored-by: Petr Viktorin <encukou@gmail.com>
This commit is contained in:
Miss Islington (bot) 2025-07-21 14:29:51 +02:00 committed by GitHub
parent 031645a884
commit 0d87bb66d3
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -2191,8 +2191,11 @@ always available. Unless explicitly noted otherwise, all variables are read-only
.. data:: api_version .. data:: api_version
The C API version for this interpreter. Programmers may find this useful when The C API version, equivalent to the C macro :c:macro:`PYTHON_API_VERSION`.
debugging version conflicts between Python and extension modules. 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 .. data:: version_info