Make append and reverse concrete methods of mutable sequences.
This commit is contained in:
parent
c4b353b4ac
commit
94353f3e7b
|
@ -703,8 +703,8 @@ from ``Sequence`` and ``Hashable``.
|
|||
``MutableSequence``
|
||||
A subclass of ``Sequence`` adding some standard mutating methods.
|
||||
Abstract mutating methods: ``__setitem__`` (for integer indices as
|
||||
well as slices), ``__delitem__`` (ditto), ``insert``, ``append``,
|
||||
``reverse``. Concrete mutating methods: ``extend``, ``pop``,
|
||||
well as slices), ``__delitem__`` (ditto), ``insert``. Concrete
|
||||
mutating methods: ``append``, ``reverse``, ``extend``, ``pop``,
|
||||
``remove``. Concrete mutating operators: ``+=``, ``*=`` (these
|
||||
mutate the object in place). **Note:** this does not define
|
||||
``sort()`` -- that is only required to exist on genuine ``list``
|
||||
|
|
Loading…
Reference in New Issue