[issue10384] SyntaxError should contain exact location of the invalid character in identifier

STINNER Victor report at bugs.python.org
Wed Oct 1 00:47:27 CEST 2014


STINNER Victor added the comment:

It looks like the issue was already fixed:

haypo at smithers$ ./python
Python 3.5.0a0 (default:8e9df3414185, Oct  1 2014, 00:19:36) 
>>> inv​alid = 5
  File "<stdin>", line 1
    inv​alid = 5
           ^
SyntaxError: invalid character in identifier

The cursor is now before "=". It's not on the invalid character inside the identifier, but it's better than before ;-)

----------
nosy: +haypo
resolution:  -> fixed
status: open -> closed

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


More information about the Python-bugs-list mailing list