Ezio Melotti <ezio.melo...@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 <rep...@bugs.python.org>
<http://bugs.python.org/issue7260>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to