[issue17825] Indentation.offset and SyntaxError.offset mismatch

Florent Xicluna report at bugs.python.org
Sat Apr 27 20:51:27 CEST 2013


Florent Xicluna added the comment:

Hello again,

actually, the attached script demonstrates some issues with the computation of the offset.

In rare cases, the computed offset does not match the position of the caret '^' in the traceback. It makes it difficult to reuse exc.offset to display the exact position.

----------
Added file: http://bugs.python.org/file30033/issue17825_cases.py

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


More information about the Python-bugs-list mailing list