[issue7260] SyntaxError with a not-existing offset for unicode code

2009-11-03 Thread Ezio Melotti
Ezio Melotti added the comment: This is actually a duplicate of #2382, so I'm closing it. #2382 also has some patch. -- resolution: -> duplicate stage: -> committed/rejected status: open -> closed ___ Python tracker

[issue7260] SyntaxError with a not-existing offset for unicode code

2009-11-03 Thread Ezio Melotti
Ezio Melotti 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 "", line 1 [aaa for x in] ^ SyntaxError: invalid syntax >>> [äää for x in] File "", line 1 [äää for x in]

[issue7260] SyntaxError with a not-existing offset for unicode code

2009-11-03 Thread Noam Raphael
New submission from Noam Raphael : Hello, This is from the current svn: > ./python Python 3.2a0 (py3k:76104, Nov 4 2009, 08:49:44) [GCC 4.4.1] on linux2 Type "help", "copyright", "credits" or "license" for more information. >>> try: ... eval("u'שלום'") ... except SyntaxError as e: ...