From: manoj-marimuthu Date: Thu, 28 May 2026 12:13:58 +0000 (+0530) Subject: Fix docs for PyThreadState_GetDict() in threads.rst (#150401) X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=8a22450ac6695bce41141afd9a9d38fcc241a7e8;p=thirdparty%2FPython%2Fcpython.git Fix docs for PyThreadState_GetDict() in threads.rst (#150401) --- diff --git a/Doc/c-api/threads.rst b/Doc/c-api/threads.rst index 508a4d71ecdf..ca34abd73d84 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 `. 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.