https://github.com/python/cpython/commit/cb270e96af61c102fda0f538c85aa967f8dda3fc
commit: cb270e96af61c102fda0f538c85aa967f8dda3fc
branch: 3.13
author: Miss Islington (bot) <[email protected]>
committer: colesbury <[email protected]>
date: 2024-11-24T17:26:40Z
summary:

[3.13] Fix macro expansions in critical section docs (GH-127226) (#127229)

(cherry picked from commit 2bb7846cacb342246aada5ed92d323e54c946063)

Co-authored-by: da-woods <[email protected]>

files:
M Doc/c-api/init.rst

diff --git a/Doc/c-api/init.rst b/Doc/c-api/init.rst
index 41093bf852b20c..385bed49511f60 100644
--- a/Doc/c-api/init.rst
+++ b/Doc/c-api/init.rst
@@ -2420,7 +2420,7 @@ code triggered by the finalizer blocks and calls 
:c:func:`PyEval_SaveThread`.
 
       {
           PyCriticalSection2 _py_cs2;
-          PyCriticalSection_Begin2(&_py_cs2, (PyObject*)(a), (PyObject*)(b))
+          PyCriticalSection2_Begin(&_py_cs2, (PyObject*)(a), (PyObject*)(b))
 
    In the default build, this macro expands to ``{``.
 
@@ -2432,7 +2432,7 @@ code triggered by the finalizer blocks and calls 
:c:func:`PyEval_SaveThread`.
 
    In the free-threaded build, this macro expands to::
 
-          PyCriticalSection_End2(&_py_cs2);
+          PyCriticalSection2_End(&_py_cs2);
       }
 
    In the default build, this macro expands to ``}``.

_______________________________________________
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]

Reply via email to