From de0d6a212758e8191a7ded33dc96940d1e1d1169 Mon Sep 17 00:00:00 2001 From: Donghee Na Date: Thu, 3 Oct 2024 14:11:21 +0900 Subject: [PATCH] gh-115145: Update documentation about ``PyThreadState_DeleteCurrent`` --- Doc/c-api/init.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Doc/c-api/init.rst b/Doc/c-api/init.rst index 0ed3f77d84be97..6d16e04ac3d864 100644 --- a/Doc/c-api/init.rst +++ b/Doc/c-api/init.rst @@ -1265,7 +1265,7 @@ All of the following functions must be called after :c:func:`Py_Initialize`. .. c:function:: void PyThreadState_DeleteCurrent(void) Destroy the current thread state and release the global interpreter lock. - Like :c:func:`PyThreadState_Delete`, the global interpreter lock need not + Like :c:func:`PyThreadState_Delete`, the global interpreter lock must be held. The thread state must have been reset with a previous call to :c:func:`PyThreadState_Clear`.