[Python-ideas] clear() method for lists
dreamingforward at gmail.com
Mon Feb 8 02:14:36 CET 2010
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.
More information about the Python-ideas