@@ -1277,22 +1277,22 @@ Notes:
1277
1277
item is removed and returned.
1278
1278
1279
1279
(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 *.
1281
1281
1282
1282
(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
1284
1284
space when reversing a large sequence. To remind users that it operates by
1285
1285
side effect, it does not return the reversed sequence.
1286
1286
1287
1287
(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
1289
1289
interfaces of mutable containers that don't support slicing operations
1290
1290
(such as :class: `dict ` and :class: `set `). :meth: `!copy ` is not part of the
1291
1291
:class: `collections.abc.MutableSequence ` ABC, but most concrete
1292
1292
mutable sequence classes provide it.
1293
1293
1294
1294
.. versionadded :: 3.3
1295
- :meth: `clear ` and :meth: `!copy ` methods.
1295
+ :meth: `! clear ` and :meth: `!copy ` methods.
1296
1296
1297
1297
(6)
1298
1298
The value *n * is an integer, or an object implementing
@@ -4659,11 +4659,12 @@ other sequence-like behavior.
4659
4659
4660
4660
There are currently two built-in set types, :class: `set ` and :class: `frozenset `.
4661
4661
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.
4667
4668
4668
4669
Non-empty sets (not frozensets) can be created by placing a comma-separated list
4669
4670
of elements within braces, for example: ``{'jack', 'sjoerd'} ``, in addition to the
@@ -5762,7 +5763,7 @@ Methods
5762
5763
.. index :: pair: object; method
5763
5764
5764
5765
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 `
5766
5767
on lists) and :ref: `class instance method <instance-methods >`.
5767
5768
Built-in methods are described with the types that support them.
5768
5769
0 commit comments