Skip to content

Commit d65303c

Browse files
authored
Rephrase warning
1 parent c3ab022 commit d65303c

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

Doc/extending/extending.rst

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -482,13 +482,13 @@ optionally followed by an import of the module::
482482

483483
.. note::
484484

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

493493
.. _compilation:
494494

0 commit comments

Comments
 (0)