Skip to content

Commit 6d987c7

Browse files
ngoldbaumcolesbury
andauthored
Apply suggestions from code review
Co-authored-by: Sam Gross <colesbury@gmail.com>
1 parent 5640b48 commit 6d987c7

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

Doc/c-api/init.rst

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2294,7 +2294,7 @@ is resumed, and its locks reacquired. This means the critical section API
22942294
provides weaker guarantees than traditional locks -- they are useful because
22952295
their behavior is similar to the :term:`GIL`.
22962296
2297-
Variants that accept :c:type:`PyMutex` instances rather than objects are also
2297+
Variants that accept :c:type:`PyMutex` pointers rather than Python objects are also
22982298
available. Use these variants to start a critical section in a situation where
22992299
there is no :c:type:`PyObject` -- for example, when working with a C type that
23002300
does not extend or wrap :c:type:`PyObject` but still needs to call into the C
@@ -2360,7 +2360,7 @@ code triggered by the finalizer blocks and calls :c:func:`PyEval_SaveThread`.
23602360
23612361
On the default build, this macro expands to ``{``.
23622362
2363-
.. versionadded:: 3.15
2363+
.. versionadded:: next
23642364
23652365
.. c:macro:: Py_END_CRITICAL_SECTION()
23662366
@@ -2402,11 +2402,11 @@ code triggered by the finalizer blocks and calls :c:func:`PyEval_SaveThread`.
24022402
PyCriticalSection2_BeginMutex(&_py_cs2, m1, m2)
24032403
24042404
Note that unlike :c:macro:`Py_BEGIN_CRITICAL_SECTION2`, there is no cast for
2405-
the second and third arguments - they must be :c:type:`PyMutex` instances.
2405+
the second and third arguments - they must be :c:type:`PyMutex` pointers.
24062406
24072407
On the default build, this macro expands to ``{``.
24082408
2409-
.. versionadded:: 3.15
2409+
.. versionadded:: next
24102410
24112411
.. c:macro:: Py_END_CRITICAL_SECTION2()
24122412

0 commit comments

Comments
 (0)