[issue42577] Unhelpful syntax error when expression spans multiple lines
Christoph Reiter
report at bugs.python.org
Fri Dec 11 18:50:15 EST 2020
Christoph Reiter <reiter.christoph at gmail.com> added the comment:
I would expect Python to print the current statement up to the error instead of just the last line:
```
File "error.py", line 3-5
print(((123))
if 2:
^
```
This would solve this case nicely while in the common case still show one line as before.
----------
_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue42577>
_______________________________________
More information about the Python-bugs-list
mailing list