Equality operator

Chris Grebeldinger cgrebeld at gmail.com
Sat Mar 5 22:06:36 CET 2005


"not" has a lower priority than non-Boolean operators, so not a == b is
interpreted as not (a == b), and a == not b is a syntax error.

http://docs.python.org/lib/boolean.html




More information about the Python-list mailing list