]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
[3.13] gh-115145: Update documentation about ``PyThreadState_DeleteCurrent`` (gh...
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Thu, 3 Oct 2024 15:54:56 +0000 (17:54 +0200)
committerGitHub <noreply@github.com>
Thu, 3 Oct 2024 15:54:56 +0000 (08:54 -0700)
gh-115145: Update documentation about ``PyThreadState_DeleteCurrent`` (gh-124920)
(cherry picked from commit 9eeb21bf761070649bf8d78976a62dabb6d67a99)

Co-authored-by: Donghee Na <donghee.na@python.org>
Doc/c-api/init.rst

index 1fab3f577f2f890726e403e51eb8fdff5cd87c9e..fd97d1d6ec3a0b870b869aad7f12e8562d33059e 100644 (file)
@@ -1218,7 +1218,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`.