"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 -- http://mail.python.org/mailman/listinfo/python-list
"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 -- http://mail.python.org/mailman/listinfo/python-list