stupid/style/list question

Giampaolo Rodola' gnewsg at gmail.com
Tue Jan 8 16:34:06 CET 2008


I was wondering...
To flush a list it is better doing "del mylist[:]" or "mylist = []"?
Is there a preferred way? If yes, why?



More information about the Python-list mailing list