Removing None objects from a sequence

Marco Mariani marco at sferacarta.com
Fri Dec 12 17:20:51 CET 2008


Kirk Strauser wrote:

> So what's the difference exactly?  "foo is not None" is actually surprising
> to me, since "not None" is True.  "0 is True" is False, but "0 is not None"
> is True.  Why is that?

Cause I was tired of course, and got the not precedente not right!! Argh



More information about the Python-list mailing list