[Python-ideas] clear() method for lists
Guido van Rossum
guido at python.org
Mon Feb 8 03:10:35 CET 2010
On Sun, Feb 7, 2010 at 5:14 PM, average <dreamingforward at gmail.com> wrote:
> On Fri, Feb 5, 2010 at 1:39 PM, Gerald Britton <gerald.britton at gmail.com> wrote:
>> In the list archives, this thread
>> discusses adding a clear() method to list objects, to complement those
>> available for sets and dictionaries. Later in the thread:
>> Christian Heimes provided a patch to do it and R. H. commented that
>> all it would take is Guido's blessing.
>> So, I'm wondering, can we do this? What are the steps needed to ask
>> this work to be blessed?
> In the abstract it seems like such a method should be part of the
> Container ABC. Since the idea of a container would imply a method to
> clear its contents.
Have you actually seen Python's Container ABC?
--Guido van Rossum (python.org/~guido)
More information about the Python-ideas