https://github.com/python/cpython/commit/e7593c86767465c7a5859591dd2cdf8c22290210 commit: e7593c86767465c7a5859591dd2cdf8c22290210 branch: 3.14 author: Miss Islington (bot) <[email protected]> committer: hugovk <[email protected]> date: 2025-09-03T16:15:36+03:00 summary:
[3.14] GH-101100: Resolve reference warnings in extending/extending.rst (GH-138417) (#138446) Co-authored-by: Adam Turner <[email protected]> files: M Doc/extending/extending.rst M Doc/tools/.nitignore M Misc/NEWS.d/3.11.0a1.rst diff --git a/Doc/extending/extending.rst b/Doc/extending/extending.rst index 0c3763b9243e98..ac1c553f021c32 100644 --- a/Doc/extending/extending.rst +++ b/Doc/extending/extending.rst @@ -401,7 +401,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:: diff --git a/Doc/tools/.nitignore b/Doc/tools/.nitignore index 6d05096f430f23..63dc41428b9fe5 100644 --- a/Doc/tools/.nitignore +++ b/Doc/tools/.nitignore @@ -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 diff --git a/Misc/NEWS.d/3.11.0a1.rst b/Misc/NEWS.d/3.11.0a1.rst index 0b49c2a78771d2..ef6547b38a2895 100644 --- a/Misc/NEWS.d/3.11.0a1.rst +++ b/Misc/NEWS.d/3.11.0a1.rst @@ -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. _______________________________________________ Python-checkins mailing list -- [email protected] To unsubscribe send an email to [email protected] https://mail.python.org/mailman3//lists/python-checkins.python.org Member address: [email protected]
