Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commitdf9f3ef

Browse files
miss-islingtonsmontanaroAlexWaygood
authored
[3.12]gh-101100: Fix Sphinx reference warnings in the glossary (GH-114729) (#114969)
gh-101100: Fix Sphinx reference warnings in the glossary (GH-114729)(cherry picked from commitab76d37)Co-authored-by: Skip Montanaro <skip.montanaro@gmail.com>Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
1 parent8ed20bc commitdf9f3ef

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

‎Doc/glossary.rst

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -350,7 +350,7 @@ Glossary
350350
docstring
351351
A string literal which appears as the first expression in a class,
352352
function or module. While ignored when the suite is executed, it is
353-
recognized by the compiler and put into the:attr:`__doc__` attribute
353+
recognized by the compiler and put into the:attr:`!__doc__` attribute
354354
of the enclosing class, function or module. Since it is available via
355355
introspection, it is the canonical place for documentation of the
356356
object.
@@ -1103,10 +1103,12 @@ Glossary
11031103
The:class:`collections.abc.Sequence` abstract base class
11041104
defines a much richer interface that goes beyond just
11051105
:meth:`~object.__getitem__` and:meth:`~object.__len__`, adding
1106-
:meth:`count`,:meth:`index`,:meth:`~object.__contains__`, and
1106+
:meth:`!count`,:meth:`!index`,:meth:`~object.__contains__`, and
11071107
:meth:`~object.__reversed__`. Types that implement this expanded
11081108
interface can be registered explicitly using
1109-
:func:`~abc.ABCMeta.register`.
1109+
:func:`~abc.ABCMeta.register`. For more documentation on sequence
1110+
methods generally, see
1111+
:ref:`Common Sequence Operations<typesseq-common>`.
11101112

11111113
set comprehension
11121114
A compact way to process all or part of the elements in an iterable and

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp