]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
GH-101100: Resolve reference warnings in extending/extending.rst (#138417)
authorAdam Turner <9087854+AA-Turner@users.noreply.github.com>
Wed, 3 Sep 2025 13:00:50 +0000 (14:00 +0100)
committerGitHub <noreply@github.com>
Wed, 3 Sep 2025 13:00:50 +0000 (16:00 +0300)
Doc/extending/extending.rst
Doc/tools/.nitignore
Misc/NEWS.d/3.11.0a1.rst

index f9b65643dfe888006a149de0a22b50f17e539abb..dee92312169a276e474a03903b005037a25bce00 100644 (file)
@@ -426,7 +426,7 @@ A pointer to the module definition must be returned via :c:func:`PyModuleDef_Ini
 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::
 
index 6d05096f430f23207c94b6d3d7ef68519eafe0f4..63dc41428b9fe502ec4118e1b4698cf81dc87ef7 100644 (file)
@@ -11,7 +11,6 @@ Doc/c-api/module.rst
 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/email.charset.rst
index 2c8e349d3c8bfb8d132980fb34deff641b53d74a..94e4868eb29cf3f13b2d93cdc7af3bf9e112b398 100644 (file)
@@ -4931,7 +4931,7 @@ Patch by Gabriele N. Tornetta
 .. 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.