Co-authored-by: Adam Turner <9087854+AA-Turner@users.noreply.github.com>
so that the import machinery can create the module and store it in ``sys.modules``.
When embedding Python, the :c:func:`!PyInit_spam` function is not called
-automatically unless there's an entry in the :c:data:`PyImport_Inittab` table.
+automatically unless there's an entry in the :c:data:`!PyImport_Inittab` table.
To add the module to the initialization table, use :c:func:`PyImport_AppendInittab`,
optionally followed by an import of the module::
Doc/c-api/stable.rst
Doc/c-api/type.rst
Doc/c-api/typeobj.rst
-Doc/extending/extending.rst
Doc/library/ast.rst
Doc/library/asyncio-extending.rst
Doc/library/asyncio-policy.rst
.. nonce: 3p14JB
.. section: C API
-:c:func:`Py_RunMain` now resets :c:data:`PyImport_Inittab` to its initial
+:c:func:`Py_RunMain` now resets :c:data:`!PyImport_Inittab` to its initial
value at exit. It must be possible to call :c:func:`PyImport_AppendInittab`
or :c:func:`PyImport_ExtendInittab` at each Python initialization. Patch by
Victor Stinner.