Delete all items in the list

Clarendon jineu21 at hotmail.com
Sat Feb 28 05:15:37 EST 2009


Thank you very much for all your replies. I actually used the while
loop as the data is not large. But I was looking for a simpler, built
in command, something like L.remove('a', all) or L.removeall('a').
Python has re.findall function, but why not removeall, so users have
to make up long lines of expression?



More information about the Python-list mailing list