Removing None objects from a sequence

Marco Mariani marco at sferacarta.com
Fri Dec 12 10:51:15 EST 2008


Filip Gruszczyński wrote:


> I am not doing it, because I need it. I can as well use "if not elem
> is None",

I suggest "if elem is not None", which is not quite the same.

If you slip such an error in a post, I suggest to practice some time 
writing correct code before having one-liner contests with your 
perl-loving friends :)




More information about the Python-list mailing list