Question about idioms for clearing a list
Fredrik Lundh
fredrik at pythonware.com
Tue Feb 7 16:32:40 EST 2006
Bryan Olson wrote:
> So is consistency; it ain't Perl, thank Guido.
consistency is the hobgoblin of little minds.
> Python now has, what, three built-in mutable collections types:
> lists, dictionaries, and sets. Dicts and sets both have a clear()
> method and lists do not.
dicts and sets are mappings, and lists are not. mappings don't
support slicing. lists do.
are you sure you know Python ?
</F>
More information about the Python-list
mailing list