Skip to content

Commit 23a46a2

Browse files
committed
Add a heading for module slots
1 parent aef1d8d commit 23a46a2

File tree

1 file changed

+6
-5
lines changed

1 file changed

+6
-5
lines changed

Doc/c-api/module.rst

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -296,7 +296,12 @@ instance must be initialized with the following function:
296296
.. versionadded:: 3.5
297297
298298
The *m_slots* member of the module definition must point to an array of
299-
``PyModuleDef_Slot`` structures:
299+
:c:type:`PyModuleDef_Slot` structures, terminated by a slot with id 0.
300+
301+
See :PEP:`489` for more details on multi-phase initialization.
302+
303+
Module slots
304+
............
300305
301306
.. c:type:: PyModuleDef_Slot
302307
@@ -310,8 +315,6 @@ The *m_slots* member of the module definition must point to an array of
310315
311316
.. versionadded:: 3.5
312317
313-
The *m_slots* array must be terminated by a slot with id 0.
314-
315318
The available slot types are:
316319
317320
.. c:macro:: Py_mod_create
@@ -422,8 +425,6 @@ The available slot types are:
422425
423426
.. versionadded:: 3.13
424427
425-
See :PEP:`489` for more details on multi-phase initialization.
426-
427428
.. _single-phase-initialization:
428429
429430
Single-phase initialization

0 commit comments

Comments
 (0)