diff options
author | Hugo van Kemenade <hugovk@users.noreply.github.com> | 2023-12-26 19:40:48 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-12-26 19:40:48 (GMT) |
commit | 4e67644d367673bbacc40a0d8efb777410437b93 (patch) | |
tree | fc6fe2b57cc5d40bdf4dbf5c653fcb703691ff57 | |
parent | 4b2c3e8e436b5191039cbe8cd9932654a60803e6 (diff) | |
download | cpython-4e67644d367673bbacc40a0d8efb777410437b93.zip cpython-4e67644d367673bbacc40a0d8efb777410437b93.tar.gz cpython-4e67644d367673bbacc40a0d8efb777410437b93.tar.bz2 |
gh-101100: Fix Sphinx warnings in `howto/isolating-extensions.rst` (#113493)
-rw-r--r-- | Doc/howto/isolating-extensions.rst | 4 | ||||
-rw-r--r-- | Doc/tools/.nitignore | 1 |
2 files changed, 2 insertions, 3 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. diff --git a/Doc/tools/.nitignore b/Doc/tools/.nitignore index 8b0fc13..4eb0075 100644 --- a/Doc/tools/.nitignore +++ b/Doc/tools/.nitignore @@ -23,7 +23,6 @@ Doc/extending/extending.rst Doc/glossary.rst Doc/howto/descriptor.rst Doc/howto/enum.rst -Doc/howto/isolating-extensions.rst Doc/howto/logging.rst Doc/howto/urllib2.rst Doc/library/ast.rst |