summaryrefslogtreecommitdiffstats
path: root/Doc/howto
diff options
context:
space:
mode:
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>2023-07-23 11:50:21 (GMT)
committerGitHub <noreply@github.com>2023-07-23 11:50:21 (GMT)
commit95a82dcbe74d1ed226a3df0763546f27bd5a6f61 (patch)
tree0d8bb08b3aa8bcc9a20d48c25bb46f8d56fb3102 /Doc/howto
parent074fcf15fa13f09c85e27f53951ef84d02d95454 (diff)
downloadcpython-95a82dcbe74d1ed226a3df0763546f27bd5a6f61.zip
cpython-95a82dcbe74d1ed226a3df0763546f27bd5a6f61.tar.gz
cpython-95a82dcbe74d1ed226a3df0763546f27bd5a6f61.tar.bz2
[3.12] gh-107091: Fix the use of some C domain roles (GH-107092) (GH-107113)
(cherry picked from commit 08a228da05a7aec937b65eea21f4091fa3c6b5cf) Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
Diffstat (limited to 'Doc/howto')
-rw-r--r--Doc/howto/isolating-extensions.rst4
1 files changed, 2 insertions, 2 deletions
diff --git a/Doc/howto/isolating-extensions.rst b/Doc/howto/isolating-extensions.rst
index f01801e..cc4a908 100644
--- a/Doc/howto/isolating-extensions.rst
+++ b/Doc/howto/isolating-extensions.rst
@@ -483,14 +483,14 @@ to get the state::
return NULL;
}
-``PyType_GetModuleByDef`` works by searching the
+:c:func:`!PyType_GetModuleByDef` works by searching the
:term:`method resolution order` (i.e. all superclasses) for the first
superclass that has a corresponding module.
.. note::
In very exotic cases (inheritance chains spanning multiple modules
- created from the same definition), ``PyType_GetModuleByDef`` might not
+ created from the same definition), :c:func:`!PyType_GetModuleByDef` might not
return the module of the true defining class. However, it will always
return a module with the same definition, ensuring a compatible
C memory layout.