Skip to content

Commit 2338b2b

Browse files
Add note about Py_MakePendingCalls()
1 parent 36c8ebc commit 2338b2b

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

Doc/c-api/init.rst

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2606,8 +2606,10 @@ These APIs are obsolete since Python 3.13 with the introduction of
26062606
If *microseconds* is ``-1``, this will wait indefinitely until the lock has
26072607
been released.
26082608
2609-
If *intr_flag* is ``1``, acquiring the lock may be interrupted by CTRL^C,
2610-
in which case this function returns :c:enumerator:`PY_LOCK_INTR`.
2609+
If *intr_flag* is ``1``, acquiring the lock may be interrupted by a signal,
2610+
in which case this function returns :c:enumerator:`PY_LOCK_INTR`. Upon
2611+
interruption, it's generally expected that the caller makes a call to
2612+
:c:func:`Py_MakePendingCalls` to propagate an exception to Python code.
26112613
26122614
If the lock is successfully acquired, this function returns
26132615
:c:enumerator:`PY_LOCK_ACQUIRED`.

0 commit comments

Comments
 (0)