[issue23518] Misplaced diagnostic caret for some SyntaxErrors

Zack Weinberg report at bugs.python.org
Wed Feb 25 15:45:33 CET 2015


Zack Weinberg added the comment:

In terms of the formal grammar of the language, you are correct.  However, the position of the caret should be chosen based *not* on the formal grammar, but on a heuristic estimation of what the most probable mistake actually is.  In both of the cases I listed, the most probable mistake is as I described.  Please reconsider.

----------
status: closed -> open

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


More information about the Python-bugs-list mailing list