[issue1679] tokenizer permits invalid hex integer

Malte Helmert report at bugs.python.org
Sat Jan 19 17:58:53 CET 2008


Malte Helmert added the comment:

Here's a patch that fixes case 1:

>>> 0x
  File "<stdin>", line 1
    0x
     ^
SyntaxError: invalid token
>>> 0xL
  File "<stdin>", line 1
    0xL
     ^
SyntaxError: invalid token

Added file: http://bugs.python.org/file9221/PATCH-1.diff

__________________________________
Tracker <report at bugs.python.org>
<http://bugs.python.org/issue1679>
__________________________________


More information about the Python-bugs-list mailing list