Skip to content

Commit 6e4b429

Browse files
Additional bonus issue for Peter
1 parent 807bcde commit 6e4b429

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

Doc/c-api/init.rst

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1187,7 +1187,8 @@ with sub-interpreters:
11871187
made on the main thread. This is mainly a helper/diagnostic function.
11881188
11891189
.. note::
1190-
This function does not account for :term:`thread states <thread state>` created
1190+
This function may return non-``NULL`` even when the :term:`thread state`
1191+
is detached.
11911192
by something other than :c:func:`PyGILState_Ensure` (such as :c:func:`PyThreadState_New`).
11921193
Prefer :c:func:`PyThreadState_Get` or :c:func:`PyThreadState_GetUnchecked`
11931194
for most cases.

0 commit comments

Comments
 (0)