Skip to content

Commit 58f7763

Browse files
[3.12] gh-115145: Update documentation about PyThreadState_DeleteCurrent (gh-124920) (gh-124931)
gh-115145: Update documentation about ``PyThreadState_DeleteCurrent`` (gh-124920) (cherry picked from commit 9eeb21b) Co-authored-by: Donghee Na <[email protected]>
1 parent c13bb99 commit 58f7763

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Doc/c-api/init.rst

+1-1
Original file line numberDiff line numberDiff line change
@@ -1269,7 +1269,7 @@ All of the following functions must be called after :c:func:`Py_Initialize`.
12691269
.. c:function:: void PyThreadState_DeleteCurrent(void)
12701270
12711271
Destroy the current thread state and release the global interpreter lock.
1272-
Like :c:func:`PyThreadState_Delete`, the global interpreter lock need not
1272+
Like :c:func:`PyThreadState_Delete`, the global interpreter lock must
12731273
be held. The thread state must have been reset with a previous call
12741274
to :c:func:`PyThreadState_Clear`.
12751275

0 commit comments

Comments
 (0)