[issue21979] SyntaxError not raised on "0xaor 1"

Mika Eloranta report at bugs.python.org
Mon Jul 14 12:33:46 CEST 2014


New submission from Mika Eloranta:

The following are expected to raise SyntaxError, but they don't:

>>> 0xfor python is weird in ways
15
>>> [0xaor 1, 0xbor 1, 0xcor 1, 0xdor 1, 0xeor 1, 0xfor 1]
[10, 11, 12, 13, 14, 15]

Verified on v2.7.1 and v3.3.2. Probably affects all versions.

----------
components: Interpreter Core
messages: 223009
nosy: mel
priority: normal
severity: normal
status: open
title: SyntaxError not raised on "0xaor 1"
type: behavior
versions: Python 2.7, Python 3.3

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue21979>
_______________________________________


More information about the Python-bugs-list mailing list