8000 [3.11] gh-101100: Fix Sphinx warnings in `howto/isolating-extensions.… · python/cpython@86424e0 · GitHub
[go: up one dir, main page]

Skip to content

Commit 86424e0

Browse files
[3.11] gh-101100: Fix Sphinx warnings in howto/isolating-extensions.rst (GH-113493) (#113498)
Co-authored-by: Hugo van Kemenade <hugovk@users.noreply.github.com>
1 parent a3a4616 commit 86424e0

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

Doc/howto/isolating-extensions.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -335,7 +335,7 @@ That is, heap types should:
335335

336336
- Have the :c:macro:`Py_TPFLAGS_HAVE_GC` flag.
337337
- Define a traverse function using ``Py_tp_traverse``, which
338-
visits the type (e.g. using :c:expr:`Py_VISIT(Py_TYPE(self))`).
338+
visits the type (e.g. using ``Py_VISIT(Py_TYPE(self))``).
339339

340340
Please refer to the the documentation of
341341
:c:macro:`Py_TPFLAGS_HAVE_GC` and :c:member:`~PyTypeObject.tp_traverse`
@@ -480,7 +480,7 @@ The largest roadblock is getting *the class a method was defined in*, or
480480
that method's "defining class" for short. The defining class can have a
481481
reference to the module it is part of.
482482

483-
Do not confuse the defining class with :c:expr:`Py_TYPE(self)`. If the method
483+
Do not confuse the defining class with ``Py_TYPE(self)``. If the method
484484
is called on a *subclass* of your type, ``Py_TYPE(self)`` will refer to
485485
that subclass, which may be defined in different module than yours.
486486

Doc/tools/.nitignore

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,6 @@ Doc/extending/extending.rst
2323
Doc/glossary.rst
2424
Doc/howto/descriptor.rst
2525
Doc/howto/enum.rst
26-
Doc/howto/isolating-extensions.rst
2726
Doc/howto/logging.rst
2827
Doc/howto/urllib2.rst
2928
Doc/library/ast.rst

0 commit comments

Comments
 (0)
0