checking if two things do not equal None

contact.trigon at gmail.com contact.trigon at gmail.com
Sat Mar 29 19:56:50 CET 2014


if (a, b) != (None, None):
or
if a != None != b:

Preference? Pros? Cons? Alternatives?

:D



More information about the Python-list mailing list