Removing None objects from a sequence

Marco Mariani marco at
Fri Dec 12 16:51:15 CET 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