how to clear up a List in python?

linnorm at gmail.com linnorm at gmail.com
Fri May 26 10:17:39 EDT 2006


The original post only mentions deleting the values in the list, not
the list itself.  Given that you want to keep the list and just ditch
the values it contains I'd go with:

list1 = []

-Linnorm




More information about the Python-list mailing list