[issue25677] Syntax error caret confused by indentation

Serhiy Storchaka report at bugs.python.org
Mon Nov 7 13:13:07 EST 2016


Serhiy Storchaka added the comment:

This may be just bad example that it looks contradictorily to you. Is the example "None = 0" looks good to you? Without patch the caret is located at the middle of None (depending on the size of the indentation of this line). With patch applied it is located at the start of None independently of the indentation.

The original bug is that the location of the caret depends on the indentation. The patch fixes this bug (and only this bug).

----------

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


More information about the Python-bugs-list mailing list