> Do you actually want to check for arbitrary objects which may claim to > equal None, or do you want to check for objects which are None?
Arbitrary objects are not a concern. > if not (a is b is None): ... > > if a is not b is not None: ... Thanks for the examples. -- https://mail.python.org/mailman/listinfo/python-list