X Tutup
Skip to content
Merged
Changes from 1 commit
Commits
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
Prev Previous commit
Next Next commit
Rephrase warning
  • Loading branch information
neonene authored May 21, 2025
commit d65303c8e51e36750478623b5c79bc788a627378
14 changes: 7 additions & 7 deletions Doc/extending/extending.rst
Original file line number Diff line number Diff line change
Expand Up @@ -482,13 +482,13 @@ optionally followed by an import of the module::

.. note::

If you need to define *static* extension types rather than heap-allocated
types, the :c:data:`Py_mod_multiple_interpreters` slot in the examples should
be ``Py_MOD_MULTIPLE_INTERPRETERS_NOT_SUPPORTED``. Without it, the module
can create the same problems as the legacy single-phase initialization, when
removing entries from ``sys.modules`` or importing compiled modules into
multiple interpreters within a process (or following a :c:func:`fork` without an
intervening :c:func:`exec`).
If you define *static* extension types rather than heap-allocated types,
the module can create the same problems as the legacy single-phase
initialization when removing entries from ``sys.modules`` or importing
compiled modules into multiple interpreters within a process
(or following a :c:func:`fork` without an intervening :c:func:`exec`).
At least, the :c:data:`Py_mod_multiple_interpreters` slot in the examples
should be ``Py_MOD_MULTIPLE_INTERPRETERS_NOT_SUPPORTED``.

.. _compilation:

Expand Down
Loading
X Tutup