Skip to content

Commit 9125561

Browse files
committed
Resolve reference warnings in library/stdtypes.rst
1 parent 98b4cd6 commit 9125561

File tree

2 files changed

+11
-11
lines changed

2 files changed

+11
-11
lines changed

Doc/library/stdtypes.rst

Lines changed: 11 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1277,22 +1277,22 @@ Notes:
12771277
item is removed and returned.
12781278

12791279
(3)
1280-
:meth:`remove` raises :exc:`ValueError` when *x* is not found in *s*.
1280+
:meth:`!remove` raises :exc:`ValueError` when *x* is not found in *s*.
12811281

12821282
(4)
1283-
The :meth:`reverse` method modifies the sequence in place for economy of
1283+
The :meth:`!reverse` method modifies the sequence in place for economy of
12841284
space when reversing a large sequence. To remind users that it operates by
12851285
side effect, it does not return the reversed sequence.
12861286

12871287
(5)
1288-
:meth:`clear` and :meth:`!copy` are included for consistency with the
1288+
:meth:`!clear` and :meth:`!copy` are included for consistency with the
12891289
interfaces of mutable containers that don't support slicing operations
12901290
(such as :class:`dict` and :class:`set`). :meth:`!copy` is not part of the
12911291
:class:`collections.abc.MutableSequence` ABC, but most concrete
12921292
mutable sequence classes provide it.
12931293

12941294
.. versionadded:: 3.3
1295-
:meth:`clear` and :meth:`!copy` methods.
1295+
:meth:`!clear` and :meth:`!copy` methods.
12961296

12971297
(6)
12981298
The value *n* is an integer, or an object implementing
@@ -4659,11 +4659,12 @@ other sequence-like behavior.
46594659

46604660
There are currently two built-in set types, :class:`set` and :class:`frozenset`.
46614661
The :class:`set` type is mutable --- the contents can be changed using methods
4662-
like :meth:`~set.add` and :meth:`~set.remove`. Since it is mutable, it has no
4663-
hash value and cannot be used as either a dictionary key or as an element of
4664-
another set. The :class:`frozenset` type is immutable and :term:`hashable` ---
4665-
its contents cannot be altered after it is created; it can therefore be used as
4666-
a dictionary key or as an element of another set.
4662+
like :meth:`add <frozenset.add>` and :meth:`remove <frozenset.add>`.
4663+
Since it is mutable, it has no hash value and cannot be used as
4664+
either a dictionary key or as an element of another set.
4665+
The :class:`frozenset` type is immutable and :term:`hashable` ---
4666+
its contents cannot be altered after it is created;
4667+
it can therefore be used as a dictionary key or as an element of another set.
46674668

46684669
Non-empty sets (not frozensets) can be created by placing a comma-separated list
46694670
of elements within braces, for example: ``{'jack', 'sjoerd'}``, in addition to the
@@ -5762,7 +5763,7 @@ Methods
57625763
.. index:: pair: object; method
57635764

57645765
Methods are functions that are called using the attribute notation. There are
5765-
two flavors: :ref:`built-in methods <builtin-methods>` (such as :meth:`append`
5766+
two flavors: :ref:`built-in methods <builtin-methods>` (such as :meth:`!append`
57665767
on lists) and :ref:`class instance method <instance-methods>`.
57675768
Built-in methods are described with the types that support them.
57685769

Doc/tools/.nitignore

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,6 @@ Doc/library/signal.rst
3535
Doc/library/smtplib.rst
3636
Doc/library/socket.rst
3737
Doc/library/ssl.rst
38-
Doc/library/stdtypes.rst
3938
Doc/library/subprocess.rst
4039
Doc/library/termios.rst
4140
Doc/library/test.rst

0 commit comments

Comments
 (0)