list.clear() missing?!?

Georg Brandl g.brandl-nospam at gmx.net
Wed Apr 12 13:02:26 EDT 2006


John Salerno wrote:
> Steven Bethard wrote:
> 
>> I think these are all good reasons for adding a clear method, but being 
>> that it has been so hotly contended in the past, I don't think it will 
>> get added without a PEP.  Anyone out there willing to take out the best 
>> examples from this thread and turn it into a PEP?
> 
> What are the usual arguments against adding it?

That there should be one obvious way to do it.

Yes, I know that it can be debated whether "del x[:]" is obvious, and
fortunately I'm not the one to decide <wink>.

Georg



More information about the Python-list mailing list