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? -- http://mail.python.org/mailman/listinfo/python-list
- Re: Delete all items in the list Chris Rebert
- Re: Delete all items in the list Gabriel Genellina
- Re: Delete all items in the list Chris Rebert
- Re: Delete all items in the list Gabriel Genellina
- Re: Delete all items in the list Peter Billam
- Re: Delete all items in the list Steve Holden
- Re: Delete all items in the list odeits
- Re: Delete all items in the list Chris Rebert
- Re: Delete all items in the list Steve Holden
- Re: Delete all items in the list Chris Rebert
- Re: Delete all items in the list Clarendon
- Re: Delete all items in the list Steven D'Aprano
- Re: Delete all items in the list Terry Reedy