gh-133296: Fix versionadded for C API functions that were backported (#137024)
Some checks are pending
Tests / (push) Blocked by required conditions
Tests / Ubuntu SSL tests with OpenSSL (push) Blocked by required conditions
Tests / Change detection (push) Waiting to run
Tests / Docs (push) Blocked by required conditions
Tests / Windows MSI (push) Blocked by required conditions
Tests / WASI (push) Blocked by required conditions
Tests / Hypothesis tests on Ubuntu (push) Blocked by required conditions
Tests / Check if Autoconf files are up to date (push) Blocked by required conditions
Tests / Check if generated files are up to date (push) Blocked by required conditions
Tests / Ubuntu SSL tests with AWS-LC (push) Blocked by required conditions
Tests / Address sanitizer (push) Blocked by required conditions
Tests / Sanitizers (push) Blocked by required conditions
Tests / Cross build Linux (push) Blocked by required conditions
Tests / CIFuzz (push) Blocked by required conditions
Tests / All required checks pass (push) Blocked by required conditions
Lint / lint (push) Waiting to run
mypy / Run mypy on Lib/_pyrepl (push) Waiting to run
mypy / Run mypy on Lib/test/libregrtest (push) Waiting to run
mypy / Run mypy on Lib/tomllib (push) Waiting to run
mypy / Run mypy on Tools/build (push) Waiting to run
mypy / Run mypy on Tools/cases_generator (push) Waiting to run
mypy / Run mypy on Tools/clinic (push) Waiting to run
mypy / Run mypy on Tools/jit (push) Waiting to run
mypy / Run mypy on Tools/peg_generator (push) Waiting to run

This commit is contained in:
Nathan Goldbaum 2025-07-22 14:27:50 -06:00 committed by GitHub
parent aafb1435d8
commit b13a5df52f
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 4 additions and 5 deletions

View file

@ -2287,7 +2287,7 @@ The C-API provides a basic mutual exclusion lock.
should not be used to make concurrency control decisions, as the lock should not be used to make concurrency control decisions, as the lock
state may change immediately after the check. state may change immediately after the check.
.. versionadded:: next .. versionadded:: 3.14
.. _python-critical-section-api: .. _python-critical-section-api:
@ -2372,7 +2372,7 @@ code triggered by the finalizer blocks and calls :c:func:`PyEval_SaveThread`.
On the default build, this macro expands to ``{``. On the default build, this macro expands to ``{``.
.. versionadded:: next .. versionadded:: 3.14
.. c:macro:: Py_END_CRITICAL_SECTION() .. c:macro:: Py_END_CRITICAL_SECTION()
@ -2418,7 +2418,7 @@ code triggered by the finalizer blocks and calls :c:func:`PyEval_SaveThread`.
On the default build, this macro expands to ``{``. On the default build, this macro expands to ``{``.
.. versionadded:: next .. versionadded:: 3.14
.. c:macro:: Py_END_CRITICAL_SECTION2() .. c:macro:: Py_END_CRITICAL_SECTION2()

View file

@ -3035,6 +3035,7 @@ Porting to Python 3.14
* ``_Py_GetConfig()``: :c:func:`PyConfig_Get` and :c:func:`PyConfig_GetInt` * ``_Py_GetConfig()``: :c:func:`PyConfig_Get` and :c:func:`PyConfig_GetInt`
* ``_Py_HashBytes()``: :c:func:`Py_HashBuffer` * ``_Py_HashBytes()``: :c:func:`Py_HashBuffer`
* ``_Py_fopen_obj()``: :c:func:`Py_fopen` * ``_Py_fopen_obj()``: :c:func:`Py_fopen`
* ``PyMutex_IsLocked()`` : :c:func:`PyMutex_IsLocked`
The `pythoncapi-compat project`_ can be used to get most of these new The `pythoncapi-compat project`_ can be used to get most of these new
functions on Python 3.13 and older. functions on Python 3.13 and older.

View file

@ -504,8 +504,6 @@ Porting to Python 3.15
* Private functions promoted to public C APIs: * Private functions promoted to public C APIs:
* ``PyMutex_IsLocked()`` : :c:func:`PyMutex_IsLocked`
The |pythoncapi_compat_project| can be used to get most of these new The |pythoncapi_compat_project| can be used to get most of these new
functions on Python 3.14 and older. functions on Python 3.14 and older.