[issue20608] 'SyntaxError: invalid token' is unfriendly

Marius Gedminas report at bugs.python.org
Sat Feb 15 13:33:40 CET 2014


Marius Gedminas added the comment:

I resolved my compilation problems (by running 'make distclean').

There are some problems with my patch:
- "leading" is misspelled (as "lleading")
- literals like 0x1z, 0o18, 0b12, 1.2e-1x produce a generic "invalid syntax" message instead of the specific "bad digit in hex/octal/binary/float literal"
- 1.2e-x produces "bad digit in float literal" correctly, but the caret points to the '-' sign instead of the 'x' character

----------

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


More information about the Python-bugs-list mailing list