summaryrefslogtreecommitdiffstats
path: root/Doc/glossary.rst
diff options
context:
space:
mode:
authorSkip Montanaro <skip.montanaro@gmail.com>2024-02-03 18:45:49 (GMT)
committerGitHub <noreply@github.com>2024-02-03 18:45:49 (GMT)
commitab76d37948fd506af44762dc1c3e32f27d1327a8 (patch)
tree9e239c49a5fd8e3d3b8126795cc5aecd1ff5f759 /Doc/glossary.rst
parenta4c298c1494b602a9650b597aad50b48e3fa1f41 (diff)
downloadcpython-ab76d37948fd506af44762dc1c3e32f27d1327a8.zip
cpython-ab76d37948fd506af44762dc1c3e32f27d1327a8.tar.gz
cpython-ab76d37948fd506af44762dc1c3e32f27d1327a8.tar.bz2
gh-101100: Fix Sphinx reference warnings in the glossary (#114729)
Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
Diffstat (limited to 'Doc/glossary.rst')
-rw-r--r--Doc/glossary.rst8
1 files changed, 5 insertions, 3 deletions
diff --git a/Doc/glossary.rst b/Doc/glossary.rst
index 098bfff..f656e32 100644
--- a/Doc/glossary.rst
+++ b/Doc/glossary.rst
@@ -341,7 +341,7 @@ Glossary
docstring
A string literal which appears as the first expression in a class,
function or module. While ignored when the suite is executed, it is
- recognized by the compiler and put into the :attr:`__doc__` attribute
+ recognized by the compiler and put into the :attr:`!__doc__` attribute
of the enclosing class, function or module. Since it is available via
introspection, it is the canonical place for documentation of the
object.
@@ -1104,10 +1104,12 @@ Glossary
The :class:`collections.abc.Sequence` abstract base class
defines a much richer interface that goes beyond just
:meth:`~object.__getitem__` and :meth:`~object.__len__`, adding
- :meth:`count`, :meth:`index`, :meth:`~object.__contains__`, and
+ :meth:`!count`, :meth:`!index`, :meth:`~object.__contains__`, and
:meth:`~object.__reversed__`. Types that implement this expanded
interface can be registered explicitly using
- :func:`~abc.ABCMeta.register`.
+ :func:`~abc.ABCMeta.register`. For more documentation on sequence
+ methods generally, see
+ :ref:`Common Sequence Operations <typesseq-common>`.
set comprehension
A compact way to process all or part of the elements in an iterable and