Skip to content

Commit b13a5df

Browse files
authored
gh-133296: Fix versionadded for C API functions that were backported (#137024)
1 parent aafb143 commit b13a5df

File tree

3 files changed

+4
-5
lines changed

3 files changed

+4
-5
lines changed

Doc/c-api/init.rst

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2287,7 +2287,7 @@ The C-API provides a basic mutual exclusion lock.
22872287
should not be used to make concurrency control decisions, as the lock
22882288
state may change immediately after the check.
22892289
2290-
.. versionadded:: next
2290+
.. versionadded:: 3.14
22912291
22922292
.. _python-critical-section-api:
22932293
@@ -2372,7 +2372,7 @@ code triggered by the finalizer blocks and calls :c:func:`PyEval_SaveThread`.
23722372
23732373
On the default build, this macro expands to ``{``.
23742374
2375-
.. versionadded:: next
2375+
.. versionadded:: 3.14
23762376
23772377
.. c:macro:: Py_END_CRITICAL_SECTION()
23782378
@@ -2418,7 +2418,7 @@ code triggered by the finalizer blocks and calls :c:func:`PyEval_SaveThread`.
24182418
24192419
On the default build, this macro expands to ``{``.
24202420
2421-
.. versionadded:: next
2421+
.. versionadded:: 3.14
24222422
24232423
.. c:macro:: Py_END_CRITICAL_SECTION2()
24242424

Doc/whatsnew/3.14.rst

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3035,6 +3035,7 @@ Porting to Python 3.14
30353035
* ``_Py_GetConfig()``: :c:func:`PyConfig_Get` and :c:func:`PyConfig_GetInt`
30363036
* ``_Py_HashBytes()``: :c:func:`Py_HashBuffer`
30373037
* ``_Py_fopen_obj()``: :c:func:`Py_fopen`
3038+
* ``PyMutex_IsLocked()`` : :c:func:`PyMutex_IsLocked`
30383039

30393040
The `pythoncapi-compat project`_ can be used to get most of these new
30403041
functions on Python 3.13 and older.

Doc/whatsnew/3.15.rst

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -504,8 +504,6 @@ Porting to Python 3.15
504504

505505
* Private functions promoted to public C APIs:
506506

507-
* ``PyMutex_IsLocked()`` : :c:func:`PyMutex_IsLocked`
508-
509507
The |pythoncapi_compat_project| can be used to get most of these new
510508
functions on Python 3.14 and older.
511509

0 commit comments

Comments
 (0)