Skip to content

Commit 6bb7423

Browse files
committed
Resolve reference warnings in extending/extending.rst
1 parent 98b4cd6 commit 6bb7423

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

Doc/extending/extending.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -426,7 +426,7 @@ A pointer to the module definition must be returned via :c:func:`PyModuleDef_Ini
426426
so that the import machinery can create the module and store it in ``sys.modules``.
427427

428428
When embedding Python, the :c:func:`!PyInit_spam` function is not called
429-
automatically unless there's an entry in the :c:data:`PyImport_Inittab` table.
429+
automatically unless there's an entry in the :c:data:`!PyImport_Inittab` table.
430430
To add the module to the initialization table, use :c:func:`PyImport_AppendInittab`,
431431
optionally followed by an import of the module::
432432

Misc/NEWS.d/3.11.0a1.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4931,7 +4931,7 @@ Patch by Gabriele N. Tornetta
49314931
.. nonce: 3p14JB
49324932
.. section: C API
49334933
4934-
:c:func:`Py_RunMain` now resets :c:data:`PyImport_Inittab` to its initial
4934+
:c:func:`Py_RunMain` now resets :c:data:`!PyImport_Inittab` to its initial
49354935
value at exit. It must be possible to call :c:func:`PyImport_AppendInittab`
49364936
or :c:func:`PyImport_ExtendInittab` at each Python initialization. Patch by
49374937
Victor Stinner.

0 commit comments

Comments
 (0)