list.clear() missing?!?

John Salerno johnjsal at NOSPAMgmail.com
Wed Apr 12 10:20:34 EDT 2006


Steven D'Aprano wrote:

> But name.clear() meaning "mutate the object referenced by name to the
> empty state" is a very natural candidate for a method, and I don't
> understand why lists shouldn't have it.

Funny this even comes up, because I was just trying to 'clear' a list 
the other day. But it sounds like it's been an issue for a while. :)



More information about the Python-list mailing list