[issue7260] SyntaxError with a not-existing offset for unicode code
Ezio Melotti
report at bugs.python.org
Wed Nov 4 08:17:53 CET 2009
Ezio Melotti <ezio.melotti at gmail.com> added the comment:
Apparently the position of the caret is based on the number of bytes in
the line, not on the characters:
>>> [aaa for x in]
File "<stdin>", line 1
[aaa for x in]
^
SyntaxError: invalid syntax
>>> [äää for x in]
File "<stdin>", line 1
[äää for x in]
^
SyntaxError: invalid syntax
In this example each ä takes two bytes so the caret is 3 extra chars on
the right.
----------
nosy: +ezio.melotti
priority: -> normal
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue7260>
_______________________________________
More information about the Python-bugs-list
mailing list