Skip to content
Open
Changes from all commits
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
15 changes: 15 additions & 0 deletions Doc/c-api/module.rst
Original file line number Diff line number Diff line change
Expand Up @@ -247,6 +247,14 @@ Feature slots
If ``Py_mod_multiple_interpreters`` is not specified, the import
machinery defaults to ``Py_MOD_MULTIPLE_INTERPRETERS_SUPPORTED``.

A suitable slot value can be defined using the :c:macro:`PySlot_DATA` macro,
as in:

.. code-block:: c

PySlot_DATA(Py_mod_multiple_interpreters,
Py_MOD_PER_INTERPRETER_GIL_SUPPORTED)

.. versionadded:: 3.12

.. c:macro:: Py_mod_gil
Expand All @@ -272,6 +280,13 @@ Feature slots
If ``Py_mod_gil`` is not specified, the import machinery defaults to
``Py_MOD_GIL_USED``.

A suitable slot value can be defined using the :c:macro:`PySlot_DATA` macro,
as in:

.. code-block:: c

PySlot_DATA(Py_mod_gil, Py_MOD_GIL_NOT_USED)

.. versionadded:: 3.13


Expand Down
Loading