File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -247,6 +247,15 @@ Feature slots
247247 If ``Py_mod_multiple_interpreters`` is not specified, the import
248248 machinery defaults to ``Py_MOD_MULTIPLE_INTERPRETERS_SUPPORTED``.
249249
250+ For historical reasons, the values are declared as pointers (``void * ``).
251+ When using :c:type:`PySlot` arrays, use :c:macro:`PySlot_DATA` for
252+ :c:macro:`!Py_mod_multiple_interpreters`:
253+
254+ .. code-block:: c
255+
256+ PySlot_DATA(Py_mod_multiple_interpreters,
257+ Py_MOD_PER_INTERPRETER_GIL_SUPPORTED)
258+
250259 .. versionadded:: 3.12
251260
252261.. c:macro:: Py_mod_gil
@@ -272,6 +281,14 @@ Feature slots
272281 If ``Py_mod_gil`` is not specified, the import machinery defaults to
273282 ``Py_MOD_GIL_USED``.
274283
284+ For historical reasons, the values are declared as pointers (``void * ``).
285+ When using :c:type:`PySlot` arrays, use :c:macro:`PySlot_DATA` for
286+ :c:macro:`!Py_mod_gil`:
287+
288+ .. code-block:: c
289+
290+ PySlot_DATA(Py_mod_gil, Py_MOD_GIL_NOT_USED)
291+
275292 .. versionadded:: 3.13
276293
277294
You can’t perform that action at this time.
0 commit comments