list.clear() missing?!?

Richie Hindle richie at entrian.com
Thu Apr 13 10:34:22 EDT 2006


[Mystilleef]
> Lists should have a clear method. But what's shocking is that
> it doesn't seem obvious to others. list.clear() is a whole lot more
> readable, intuitive, "flowable" and desirable than [the alternatives]

+1 to all of that.

-- 
Richie Hindle
richie at entrian.com



More information about the Python-list mailing list