]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
gh-133296: Fix versionadded for C API functions that were backported (#137024)
authorNathan Goldbaum <nathan.goldbaum@gmail.com>
Tue, 22 Jul 2025 20:27:50 +0000 (14:27 -0600)
committerGitHub <noreply@github.com>
Tue, 22 Jul 2025 20:27:50 +0000 (21:27 +0100)
Doc/c-api/init.rst
Doc/whatsnew/3.14.rst
Doc/whatsnew/3.15.rst

index d35e905b2e72dfb9dc9f7aeb06dab5ca99467a50..e3ad4f4cdc52cc2f1961fec6a6f167039e9c6f87 100644 (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
       state may change immediately after the check.
 
-   .. versionadded:: next
+   .. versionadded:: 3.14
 
 .. _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 ``{``.
 
-   .. versionadded:: next
+   .. versionadded:: 3.14
 
 .. 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 ``{``.
 
-   .. versionadded:: next
+   .. versionadded:: 3.14
 
 .. c:macro:: Py_END_CRITICAL_SECTION2()
 
index e45a2bfa485c50c55f339338056abb8126146999..44ee2bbeb7761f287ec1757e99022c5f4a7480eb 100644 (file)
@@ -3035,6 +3035,7 @@ Porting to Python 3.14
   * ``_Py_GetConfig()``: :c:func:`PyConfig_Get` and :c:func:`PyConfig_GetInt`
   * ``_Py_HashBytes()``: :c:func:`Py_HashBuffer`
   * ``_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
   functions on Python 3.13 and older.
index 4d4fb77ad4f030d675866d6fdc5eab108b30c002..e8e2c1ed6047bfee4564412834538a8dc0d99165 100644 (file)
@@ -504,8 +504,6 @@ Porting to Python 3.15
 
 * 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
   functions on Python 3.14 and older.