We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 807bcde commit 6e4b429Copy full SHA for 6e4b429
Doc/c-api/init.rst
@@ -1187,7 +1187,8 @@ with sub-interpreters:
1187
made on the main thread. This is mainly a helper/diagnostic function.
1188
1189
.. note::
1190
- This function does not account for :term:`thread states <thread state>` created
+ This function may return non-``NULL`` even when the :term:`thread state`
1191
+ is detached.
1192
by something other than :c:func:`PyGILState_Ensure` (such as :c:func:`PyThreadState_New`).
1193
Prefer :c:func:`PyThreadState_Get` or :c:func:`PyThreadState_GetUnchecked`
1194
for most cases.
0 commit comments