@@ -3140,17 +3140,20 @@ objects. The :mod:`collections.abc` module provides a
3140
3140
:term: `abstract base class ` to help create those methods from a base set of
3141
3141
:meth: `~object.__getitem__ `, :meth: `~object.__setitem__ `,
3142
3142
:meth: `~object.__delitem__ `, and :meth: `!keys `.
3143
- Mutable sequences should provide methods :meth: `~sequence.append `,
3144
- :meth: `~sequence.count `, :meth: `~sequence.index `, :meth: `~sequence.extend `,
3145
- :meth: `~sequence.insert `, :meth: `~sequence.pop `, :meth: `~sequence.remove `,
3146
- :meth: `~sequence.reverse ` and :meth: `!sort `,
3143
+
3144
+ Mutable sequences should provide methods
3145
+ :meth: `~sequence.append `, :meth: `~sequence.clear `, :meth: `~sequence.count `,
3146
+ :meth: `~sequence.extend `, :meth: `~sequence.index `, :meth: `~sequence.insert `,
3147
+ :meth: `~sequence.pop `, :meth: `~sequence.remove `, and :meth: `~sequence.reverse `,
3147
3148
like Python standard :class: `list ` objects.
3148
3149
Finally, sequence types should implement addition (meaning concatenation) and
3149
3150
multiplication (meaning repetition) by defining the methods
3150
3151
:meth: `~object.__add__ `, :meth: `~object.__radd__ `, :meth: `~object.__iadd__ `,
3151
3152
:meth: `~object.__mul__ `, :meth: `~object.__rmul__ ` and :meth: `~object.__imul__ `
3152
3153
described below; they should not define other numerical
3153
- operators. It is recommended that both mappings and sequences implement the
3154
+ operators.
3155
+
3156
+ It is recommended that both mappings and sequences implement the
3154
3157
:meth: `~object.__contains__ ` method to allow efficient use of the ``in ``
3155
3158
operator; for
3156
3159
mappings, ``in `` should search the mapping's keys; for sequences, it should
0 commit comments