https://github.com/python/cpython/commit/b13a5df52fc854d1097e8b5419cb8802dc4059e0
commit: b13a5df52fc854d1097e8b5419cb8802dc4059e0
branch: main
author: Nathan Goldbaum <[email protected]>
committer: AA-Turner <[email protected]>
date: 2025-07-22T21:27:50+01:00
summary:
gh-133296: Fix versionadded for C API functions that were backported (#137024)
files:
M Doc/c-api/init.rst
M Doc/whatsnew/3.14.rst
M Doc/whatsnew/3.15.rst
diff --git a/Doc/c-api/init.rst b/Doc/c-api/init.rst
index d35e905b2e72df..e3ad4f4cdc52cc 100644
--- a/Doc/c-api/init.rst
+++ b/Doc/c-api/init.rst
@@ -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()
diff --git a/Doc/whatsnew/3.14.rst b/Doc/whatsnew/3.14.rst
index e45a2bfa485c50..44ee2bbeb7761f 100644
--- a/Doc/whatsnew/3.14.rst
+++ b/Doc/whatsnew/3.14.rst
@@ -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.
diff --git a/Doc/whatsnew/3.15.rst b/Doc/whatsnew/3.15.rst
index 4d4fb77ad4f030..e8e2c1ed6047bf 100644
--- a/Doc/whatsnew/3.15.rst
+++ b/Doc/whatsnew/3.15.rst
@@ -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.
_______________________________________________
Python-checkins mailing list -- [email protected]
To unsubscribe send an email to [email protected]
https://mail.python.org/mailman3//lists/python-checkins.python.org
Member address: [email protected]