File tree Expand file tree Collapse file tree 1 file changed +5
-4
lines changed
Expand file tree Collapse file tree 1 file changed +5
-4
lines changed Original file line number Diff line number Diff line change @@ -1729,10 +1729,11 @@ function. You can create and destroy them using the following functions:
17291729 must be held before calling this function and is still held when it
17301730 returns. Likewise a current thread state must be set on entry. On
17311731 success, the returned thread state will be set as current. If the
1732- sub-interpreter is created with its own GIL then the GIL of the
1733- calling interpreter will be released. When the function returns,
1734- the new interpreter's GIL will be held by the current thread and
1735- the previously interpreter's GIL will remain released here.
1732+ sub-interpreter is created with its own :term:`thread state` then the
1733+ :term:`thread state` of the calling interpreter will be detached.
1734+ When the function returns, the new interpreter's :term:`thread state`
1735+ will be activated for the current thread and the previously interpreter's
1736+ :term:`thread state` will remain detached here.
17361737
17371738 .. versionadded:: 3.12
17381739
You can’t perform that action at this time.
0 commit comments