Skip to content
Closed
Changes from 4 commits
Commits
Show all changes
23 commits
Select commit Hold shift + click to select a range
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 5 additions & 2 deletions Doc/c-api/init.rst
Original file line number Diff line number Diff line change
Expand Up @@ -919,8 +919,11 @@ from a C thread is::
Note that the ``PyGILState_*`` functions assume there is only one global
interpreter (created automatically by :c:func:`Py_Initialize`). Python
supports the creation of additional interpreters (using
:c:func:`Py_NewInterpreter`), but mixing multiple interpreters and the
``PyGILState_*`` API is unsupported.
:c:func:`Py_NewInterpreter`), but switching between interpreters via the
``PyGILState_*`` API is unsupported. With that being said, you still need
to hold the :term:`GIL` in order to *create* a subinterpreter, even if using
a per-interpreter GIL (see :pep:`684`). The need for :c:type:`PyGILState_STATE`
doesn't go away when creating isolated subinterpreters!
Comment thread
ZeroIntensity marked this conversation as resolved.
Resolved


.. _fork-and-threads:
Expand Down