removing all instances of a certain value from a list

bearophileHUGS at lycos.com bearophileHUGS at lycos.com
Fri Mar 21 08:55:47 EDT 2008


r.gr... at science-computing.de:
> >>> a=filter ( lambda b: b != None, a)

With None it's better to use is/not is instead of ==/!=

Bye,
bearophile



More information about the Python-list mailing list