https://github.com/python/cpython/commit/8a22450ac6695bce41141afd9a9d38fcc241a7e8
commit: 8a22450ac6695bce41141afd9a9d38fcc241a7e8
branch: main
author: manoj-marimuthu <[email protected]>
committer: kumaraditya303 <[email protected]>
date: 2026-05-28T12:13:58Z
summary:
Fix docs for PyThreadState_GetDict() in threads.rst (#150401)
files:
M Doc/c-api/threads.rst
diff --git a/Doc/c-api/threads.rst b/Doc/c-api/threads.rst
index 508a4d71ecdf961..ca34abd73d8423b 100644
--- a/Doc/c-api/threads.rst
+++ b/Doc/c-api/threads.rst
@@ -736,10 +736,10 @@ Low-level APIs
.. c:function:: PyObject* PyThreadState_GetDict()
Return a dictionary in which extensions can store thread-specific state
- information. Each extension should use a unique key to use to store state
in
+ information. Each extension should use a unique key to store a state in
the dictionary. It is okay to call this function when no :term:`thread
state`
is :term:`attached <attached thread state>`. If this function returns
- ``NULL``, no exception has been raised and the caller should assume no
+ ``NULL`` and no exception has been raised, then the caller should assume no
thread state is attached.
_______________________________________________
Python-checkins mailing list -- [email protected]
To unsubscribe send an email to [email protected]
https://mail.python.org/mailman3//lists/python-checkins.python.org
Member address: [email protected]