[Stefan Behnel]

> Frans Englich schrieb:
> >What is the equivalent expression which is more secure; `!= None`?

> If I want to check for None, I always do it with "is". It's a constant
> after all...

So do I.  There is only one None object, for which an `is' test is
especially appropriate.

-- 
François Pinard   http://pinard.progiciels-bpi.ca
-- 
http://mail.python.org/mailman/listinfo/python-list

Reply via email to