summaryrefslogtreecommitdiffstats
path: root/Doc
diff options
context:
space:
mode:
authorDonghee Na <donghee.na@python.org>2024-10-03 10:34:47 (GMT)
committerGitHub <noreply@github.com>2024-10-03 10:34:47 (GMT)
commit9eeb21bf761070649bf8d78976a62dabb6d67a99 (patch)
tree240a106127512d9f3dc515550082da77f2527551 /Doc
parent656b7a3c83c79f99beac950b59c47575562ea729 (diff)
downloadcpython-9eeb21bf761070649bf8d78976a62dabb6d67a99.zip
cpython-9eeb21bf761070649bf8d78976a62dabb6d67a99.tar.gz
cpython-9eeb21bf761070649bf8d78976a62dabb6d67a99.tar.bz2
gh-115145: Update documentation about ``PyThreadState_DeleteCurrent`` (gh-124920)
Diffstat (limited to 'Doc')
-rw-r--r--Doc/c-api/init.rst2
1 files changed, 1 insertions, 1 deletions
diff --git a/Doc/c-api/init.rst b/Doc/c-api/init.rst
index 0ed3f77..6d16e04 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`.