[issue25677] Syntax error caret confused by indentation

Berker Peksag report at bugs.python.org
Thu Dec 10 11:33:43 EST 2015


Berker Peksag added the comment:

With the latest patch applied, the output is

  File "z.py", line 2
    1 + 2 = 3
    ^
SyntaxError: can't assign to operator

I think the caret is still in wrong place.

I would expect the following output:

  File "z.py", line 2
    1 + 2 = 3
          ^
SyntaxError: can't assign to operator

----------
nosy: +berker.peksag

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


More information about the Python-bugs-list mailing list