
report at bugs
Nov 3, 2009, 11:04 PM
Post #1 of 3
(32 views)
Permalink
|
|
[issue7260] SyntaxError with a not-existing offset for unicode code
|
|
New submission from Noam Raphael <noamraph[at]gmail.com>: 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: ... e ... SyntaxError('invalid syntax', ('<string>', 1, 11, "u'שלום'")) As you can see, the offset (11) refers to a non-existing character, as the code contains only 7 characters. Thanks, Noam ---------- components: Interpreter Core messages: 94879 nosy: noam severity: normal status: open title: SyntaxError with a not-existing offset for unicode code versions: Python 3.2 _______________________________________ Python tracker <report[at]bugs.python.org> <http://bugs.python.org/issue7260> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/list-python-bugs%40lists.gossamer-threads.com
|