stupid/style/list question

Giampaolo Rodola' gnewsg at gmail.com
Tue Jan 8 10:34:06 EST 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