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``
|
``MutableSequence``
|
||||||
A subclass of ``Sequence`` adding some standard mutating methods.
|
A subclass of ``Sequence`` adding some standard mutating methods.
|
||||||
Abstract mutating methods: ``__setitem__`` (for integer indices as
|
Abstract mutating methods: ``__setitem__`` (for integer indices as
|
||||||
well as slices), ``__delitem__`` (ditto), ``insert``, ``append``,
|
well as slices), ``__delitem__`` (ditto), ``insert``. Concrete
|
||||||
``reverse``. Concrete mutating methods: ``extend``, ``pop``,
|
mutating methods: ``append``, ``reverse``, ``extend``, ``pop``,
|
||||||
``remove``. Concrete mutating operators: ``+=``, ``*=`` (these
|
``remove``. Concrete mutating operators: ``+=``, ``*=`` (these
|
||||||
mutate the object in place). **Note:** this does not define
|
mutate the object in place). **Note:** this does not define
|
||||||
``sort()`` -- that is only required to exist on genuine ``list``
|
``sort()`` -- that is only required to exist on genuine ``list``
|
||||||
|
|
Loading…
Reference in New Issue