]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
Fix docs for PyThreadState_GetDict() in threads.rst (#150401)
authormanoj-marimuthu <manojkm24dev@gmail.com>
Thu, 28 May 2026 12:13:58 +0000 (17:43 +0530)
committerGitHub <noreply@github.com>
Thu, 28 May 2026 12:13:58 +0000 (12:13 +0000)
Doc/c-api/threads.rst

index 508a4d71ecdf961f0c4fd85f865b80202a13fd86..ca34abd73d8423be6edf3ed535165c1f866d58f4 100644 (file)
@@ -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.