[issue27582] Mispositioned SyntaxError caret for unknown code points

Chris Angelico report at bugs.python.org
Thu Jul 21 12:35:15 EDT 2016


Chris Angelico added the comment:

Attached is a combined patch that has the new private function for IsIdentifier, method 4's error handling change, and a bit of glue in the middle to make use of it. The result is a passing test suite (bar test_site which was already failing on my system) and a caret that points to the errant Unicode character, or the beginning of the identifier if it's a decode problem.

----------
Added file: http://bugs.python.org/file43819/combined.patch

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


More information about the Python-bugs-list mailing list