Steven D'Aprano wrote:
Generally, when testing for None, you actually want None and not some look-alike that merely tests equal to None.
That's true, although I can't think of a use case for an object that compares equal to None but isn't -- except for obfuscated code competition entries and making obscure points in usenet discussions. :-) -- Greg -- http://mail.python.org/mailman/listinfo/python-list