In <[EMAIL PROTECTED]>, italy wrote:

> Why doesn't this statement execute in Python:
> 
> 1 == not 0
> 
> I get a syntax error, but I don't know why. 

`==` has a higher precedence than `not` so Python interprets it as::

  (1 == not) 0

This works::

  >>> 1 == (not 0)
  True

Ciao,
        Marc 'BlackJack' Rintsch
-- 
http://mail.python.org/mailman/listinfo/python-list

Reply via email to