summaryrefslogtreecommitdiffstats
path: root/Doc/howto/isolating-extensions.rst
diff options
context:
space:
mode:
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>2023-12-26 19:46:40 (GMT)
committerGitHub <noreply@github.com>2023-12-26 19:46:40 (GMT)
commit2f5bfc7e66d01a61950afb2280fe6e3fbbf06e84 (patch)
tree1c5a89e3bf73683e3e83b207cbcb7c7a047889cd /Doc/howto/isolating-extensions.rst
parentf445aeac2625132c121a9921feeefd88f4030835 (diff)
downloadcpython-2f5bfc7e66d01a61950afb2280fe6e3fbbf06e84.zip
cpython-2f5bfc7e66d01a61950afb2280fe6e3fbbf06e84.tar.gz
cpython-2f5bfc7e66d01a61950afb2280fe6e3fbbf06e84.tar.bz2
[3.12] gh-101100: Fix Sphinx warnings in `howto/isolating-extensions.rst` (GH-113493) (#113497)
Co-authored-by: Hugo van Kemenade <hugovk@users.noreply.github.com>
Diffstat (limited to 'Doc/howto/isolating-extensions.rst')
-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 835c0af..e35855d 100644
--- a/Doc/howto/isolating-extensions.rst
+++ b/Doc/howto/isolating-extensions.rst
@@ -337,7 +337,7 @@ That is, heap types should:
- Have the :c:macro:`Py_TPFLAGS_HAVE_GC` flag.
- Define a traverse function using ``Py_tp_traverse``, which
- visits the type (e.g. using :c:expr:`Py_VISIT(Py_TYPE(self))`).
+ visits the type (e.g. using ``Py_VISIT(Py_TYPE(self))``).
Please refer to the the documentation of
:c:macro:`Py_TPFLAGS_HAVE_GC` and :c:member:`~PyTypeObject.tp_traverse`
@@ -482,7 +482,7 @@ The largest roadblock is getting *the class a method was defined in*, or
that method's "defining class" for short. The defining class can have a
reference to the module it is part of.
-Do not confuse the defining class with :c:expr:`Py_TYPE(self)`. If the method
+Do not confuse the defining class with ``Py_TYPE(self)``. If the method
is called on a *subclass* of your type, ``Py_TYPE(self)`` will refer to
that subclass, which may be defined in different module than yours.