[issue23518] Misplaced diagnostic caret for some SyntaxErrors
Zachary Ware
report at bugs.python.org
Wed Feb 25 05:05:14 CET 2015
Zachary Ware added the comment:
The caret is correct:
>>> While = 'some string'
>>> While
'some string'
>>> the = range(10)
>>> the
range(0, 10)
>>> for x in the: pass
...
>>>
In both cases, the error is having an expression followed by an expression, and the caret points at the second expression. There's nothing wrong with 'While' and 'the', they're perfectly legitimate names, though rarely used.
----------
nosy: +zach.ware
resolution: -> not a bug
stage: -> resolved
status: open -> closed
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue23518>
_______________________________________
More information about the Python-bugs-list
mailing list