Skip to content

Commit 3336ad7

Browse files
committed
Change term for Py_NewInterpreterFromConfig
1 parent 3a69922 commit 3336ad7

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

Doc/c-api/init.rst

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff 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

0 commit comments

Comments
 (0)