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