summaryrefslogtreecommitdiffstats
path: root/Doc/extending/extending.rst
diff options
context:
space:
mode:
authorVictor Stinner <vstinner@python.org>2023-07-26 16:59:06 (GMT)
committerGitHub <noreply@github.com>2023-07-26 16:59:06 (GMT)
commit87b39028e5f453a949a1675526c439f6479a04a8 (patch)
tree9fffc46d231914c9f3fe91678f25032e7337e735 /Doc/extending/extending.rst
parentb1de3807b832b72dfeb66dd5646159d08d2cc74a (diff)
downloadcpython-87b39028e5f453a949a1675526c439f6479a04a8.zip
cpython-87b39028e5f453a949a1675526c439f6479a04a8.tar.gz
cpython-87b39028e5f453a949a1675526c439f6479a04a8.tar.bz2
gh-107298: Fix doc references to undocumented modules (#107300)
Update also Doc/tools/.nitignore.
Diffstat (limited to 'Doc/extending/extending.rst')
-rw-r--r--Doc/extending/extending.rst4
1 files changed, 2 insertions, 2 deletions
diff --git a/Doc/extending/extending.rst b/Doc/extending/extending.rst
index 00a9edc..94ead2b 100644
--- a/Doc/extending/extending.rst
+++ b/Doc/extending/extending.rst
@@ -367,7 +367,7 @@ Note that PyMODINIT_FUNC declares the function as ``PyObject *`` return type,
declares any special linkage declarations required by the platform, and for C++
declares the function as ``extern "C"``.
-When the Python program imports module :mod:`spam` for the first time,
+When the Python program imports module :mod:`!spam` for the first time,
:c:func:`PyInit_spam` is called. (See below for comments about embedding Python.)
It calls :c:func:`PyModule_Create`, which returns a module object, and
inserts built-in function objects into the newly created module based upon the
@@ -1219,7 +1219,7 @@ file corresponding to the module provides a macro that takes care of importing
the module and retrieving its C API pointers; client modules only have to call
this macro before accessing the C API.
-The exporting module is a modification of the :mod:`spam` module from section
+The exporting module is a modification of the :mod:`!spam` module from section
:ref:`extending-simpleexample`. The function :func:`spam.system` does not call
the C library function :c:func:`system` directly, but a function
:c:func:`PySpam_System`, which would of course do something more complicated in