@@ -142,7 +142,7 @@ Modules created using the C API are typically defined using an
142142array of :dfn: `slots `.
143143The slots provide a "description" of how a module should be created.
144144
145- .. versionchanged :: next
145+ .. versionchanged :: 3.15
146146
147147 Previously, a :c:type: `PyModuleDef ` struct was necessary to define modules.
148148 The older way of defining modules is still available: consult either the
@@ -190,7 +190,7 @@ Metadata slots
190190 However, it is still recommended to include this slot for introspection
191191 and debugging purposes.
192192
193- .. versionadded:: next
193+ .. versionadded:: 3.15
194194
195195 Use :c:member:`PyModuleDef.m_name` instead to support previous versions.
196196
@@ -201,7 +201,7 @@ Metadata slots
201201
202202 Usually it is set to a variable created with :c:macro:`PyDoc_STRVAR`.
203203
204- .. versionadded:: next
204+ .. versionadded:: 3.15
205205
206206 Use :c:member:`PyModuleDef.m_doc` instead to support previous versions.
207207
@@ -332,7 +332,7 @@ Creation and initialization slots
332332
333333 .. versionadded:: 3.5
334334
335- .. versionchanged:: next
335+ .. versionchanged:: 3.15
336336
337337 The *slots* argument may be a ``ModuleSpec``-like object, rather than
338338 a true :py:class:`~importlib.machinery.ModuleSpec` instance.
@@ -365,7 +365,7 @@ Creation and initialization slots
365365
366366 .. versionadded:: 3.5
367367
368- .. versionchanged:: next
368+ .. versionchanged:: 3.15
369369
370370 Repeated ``Py_mod_exec`` slots are disallowed, except in
371371 :c:type:`PyModuleDef.m_slots`.
@@ -384,7 +384,7 @@ Creation and initialization slots
384384 The table must be statically allocated (or otherwise guaranteed to outlive
385385 the module object).
386386
387- .. versionadded:: next
387+ .. versionadded:: 3.15
388388
389389 Use :c:member:`PyModuleDef.m_methods` instead to support previous versions.
390390
@@ -434,7 +434,7 @@ To retrieve the state from a given module, use the following functions:
434434
435435 On error, set *\*result* to -1, and return -1 with an exception set.
436436
437- .. versionadded:: next
437+ .. versionadded:: 3.15
438438
439439
440440
@@ -459,7 +459,7 @@ defining the module state.
459459
460460 Use :c:func:`PyModule_GetStateSize` to retrieve the size of a given module.
461461
462- .. versionadded:: next
462+ .. versionadded:: 3.15
463463
464464 Use :c:member:`PyModuleDef.m_size` instead to support previous versions.
465465
@@ -482,7 +482,7 @@ defining the module state.
482482 (:c:data: `Py_mod_state_size `) is greater than 0 and the module state
483483 (as returned by :c:func: `PyModule_GetState `) is ``NULL``.
484484
485- .. versionadded:: next
485+ .. versionadded:: 3.15
486486
487487 Use :c:member:`PyModuleDef.m_size` instead to support previous versions.
488488
@@ -510,7 +510,7 @@ defining the module state.
510510 the cyclic garbage collector is not involved and
511511 the :c:macro:`Py_mod_state_free` function is called directly.
512512
513- .. versionadded:: next
513+ .. versionadded:: 3.15
514514
515515 Use :c:member:`PyModuleDef.m_clear` instead to support previous versions.
516516
@@ -532,7 +532,7 @@ defining the module state.
532532 (:c:data: `Py_mod_state_size `) is greater than 0 and the module state
533533 (as returned by :c:func: `PyModule_GetState `) is ``NULL``.
534534
535- .. versionadded:: next
535+ .. versionadded:: 3.15
536536
537537 Use :c:member:`PyModuleDef.m_free` instead to support previous versions.
538538
@@ -593,15 +593,15 @@ A module's token -- and the *your_token* value to use in the above code -- is:
593593 This means that :c:macro:`!Py_mod_token` cannot be used in
594594 :c:member:`PyModuleDef.m_slots`.
595595
596- .. versionadded:: next
596+ .. versionadded:: 3.15
597597
598598.. c:function:: int PyModule_GetToken(PyObject *module, void* * result)
599599
600600 Set *\*result* to the module's token and return 0.
601601
602602 On error, set *\*result* to NULL, and return -1 with an exception set.
603603
604- .. versionadded:: next
604+ .. versionadded:: 3.15
605605
606606See also :c:func:`PyType_GetModuleByToken`.
607607
@@ -641,7 +641,7 @@ rather than from an extension's :ref:`export hook <extension-export-hook>`.
641641 :c:func:`!PyModule_FromSlotsAndSpec` call.
642642 In particular, it may be heap-allocated.
643643
644- .. versionadded:: next
644+ .. versionadded:: 3.15
645645
646646.. c:function:: int PyModule_Exec(PyObject *module)
647647
@@ -654,7 +654,7 @@ rather than from an extension's :ref:`export hook <extension-export-hook>`.
654654 :ref:`legacy single-phase initialization <single-phase-initialization>`,
655655 this function does nothing and returns 0.
656656
657- .. versionadded:: next
657+ .. versionadded:: 3.15
658658
659659
660660
0 commit comments