Skip to content

Commit 3a69922

Browse files
committed
Change term for PyThreadState_SetAsyncEx
1 parent c05be67 commit 3a69922

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Doc/c-api/init.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1537,7 +1537,7 @@ All of the following functions must be called after :c:func:`Py_Initialize`.
15371537
Asynchronously raise an exception in a thread. The *id* argument is the thread
15381538
id of the target thread; *exc* is the exception object to be raised. This
15391539
function does not steal any references to *exc*. To prevent naive misuse, you
1540-
must write your own C extension to call this. Must be called with the GIL held.
1540+
must write your own C extension to call this. Must be called with an active :term:`thread state`.
15411541
Returns the number of thread states modified; this is normally one, but will be
15421542
zero if the thread id isn't found. If *exc* is ``NULL``, the pending
15431543
exception (if any) for the thread is cleared. This raises no exceptions.

0 commit comments

Comments
 (0)