"Marko Rauhamaa" <ma...@pacujo.net> wrote:

In almost all cases, both tests would result in the same behavior.
However, the "is not" test is conceptually the correct one since you
want to know if x is the one and only None object. You don't want to be
fooled by an imposter object that simply looks like the None object.

Thanks for this excellent answer. "Terve, terve".
--
https://mail.python.org/mailman/listinfo/python-list

Reply via email to