From 94353f3e7bafb6ec4f8ac731eaae1613d0d38583 Mon Sep 17 00:00:00 2001 From: Guido van Rossum Date: Thu, 17 May 2007 00:20:06 +0000 Subject: [PATCH] Make append and reverse concrete methods of mutable sequences. --- pep-3119.txt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pep-3119.txt b/pep-3119.txt index 896f57f26..3667634b4 100644 --- a/pep-3119.txt +++ b/pep-3119.txt @@ -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``