]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
[3.13] Fix macro expansions in critical section docs (GH-127226) (#127229)
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Sun, 24 Nov 2024 17:26:40 +0000 (18:26 +0100)
committerGitHub <noreply@github.com>
Sun, 24 Nov 2024 17:26:40 +0000 (17:26 +0000)
(cherry picked from commit 2bb7846cacb342246aada5ed92d323e54c946063)

Co-authored-by: da-woods <dw-git@d-woods.co.uk>
Doc/c-api/init.rst

index 41093bf852b20c6741e7812a459c915a5005bbba..385bed49511f605da58f13e445a154f388a10f5c 100644 (file)
@@ -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 ``}``.