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 <rep...@bugs.python.org>
<http://bugs.python.org/issue21979>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to