Make append and reverse concrete methods of mutable sequences.

This commit is contained in:
Guido van Rossum 2007-05-17 00:20:06 +00:00
parent c4b353b4ac
commit 94353f3e7b
1 changed files with 2 additions and 2 deletions

View File

@ -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``