[issue20608] 'SyntaxError: invalid token' is unfriendly

Serhiy Storchaka report at bugs.python.org
Wed Feb 12 18:21:19 CET 2014


Serhiy Storchaka added the comment:

Note that "invalid token" is emitted only on invalid first digit:

>>> 0b2
  File "<stdin>", line 1
    0b2
     ^
SyntaxError: invalid token
>>> 0b02
  File "<stdin>", line 1
    0b02
       ^
SyntaxError: invalid syntax


See also issue1634034.

----------
nosy: +serhiy.storchaka

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


More information about the Python-bugs-list mailing list