[issue21979] SyntaxError not raised on "0xaor 1"
Mika Eloranta
report at bugs.python.org
Mon Jul 14 13:26:20 CEST 2014
Mika Eloranta added the comment:
Mark, can you explain why the first example is valid syntax, but the second one is not:
>>> 0xaor 1
10
>>> 0xaand 1
File "<stdin>", line 1
0xaand 1
^
SyntaxError: invalid syntax
I do understand how "0xaor 1" is currently parsed, but I'm not still convinced it should be valid syntax ("0xa or 1" or "(0xa)or 1" would be ok).
----------
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue21979>
_______________________________________
More information about the Python-bugs-list
mailing list