Skip to content

Commit ff79428

Browse files
AA-Turnermiss-islington
authored andcommitted
pythonGH-101100: Resolve reference warnings in extending/extending.rst (pythonGH-138417)
(cherry picked from commit 8cf547f) Co-authored-by: Adam Turner <[email protected]>
1 parent 44b3940 commit ff79428

File tree

3 files changed

+2
-3
lines changed

3 files changed

+2
-3
lines changed

Doc/extending/extending.rst

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

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

Doc/tools/.nitignore

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@ Doc/c-api/module.rst
1111
Doc/c-api/stable.rst
1212
Doc/c-api/type.rst
1313
Doc/c-api/typeobj.rst
14-
Doc/extending/extending.rst
1514
Doc/library/ast.rst
1615
Doc/library/asyncio-extending.rst
1716
Doc/library/email.charset.rst

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)