Regarding the magical "or" operator

Bruce Dodson bruce_dodson at bigfoot.com
Sun Aug 15 12:48:14 EDT 1999


>My question is this: have you ever had an urge for it (or a variant)
>to care about the difference between None and any other false value?


I get along fine without it by testing "myVar is None" to distinguish it
from other false values.  However, (trying to see your point) I guess if I
were thinking about None like an IEEE NaN, or like a database NULL, it might
bother me that "not None" is 1.





More information about the Python-list mailing list