Matthew Barnett added the comment:
"not" has a lower priority than unary "-"; this:
not a < b
is parsed as:
not (a < b)
How would you parse:
0 + not 0 + 0
?
Would it be parsed as:
0 + not (0 + 0)
?
Similar remarks could apply to "yield":
0 + yield 0
which is also a syntax error.
----------
nosy: +mrabarnett
_______________________________________
Python tracker <[email protected]>
<http://bugs.python.org/issue24612>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe:
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com