[issue41982] [Python 3.8] Wrong location flagged as syntax error

2020-10-18 Thread Pablo Galindo Salgado
Pablo Galindo Salgado added the comment: Closing this as the new parser in Python3.9+ handles this correctly -- resolution: -> fixed stage: -> resolved status: open -> closed ___ Python tracker ___

[issue41982] [Python 3.8] Wrong location flagged as syntax error

2020-10-09 Thread STINNER Victor
STINNER Victor added the comment: Python 3.9 parser seems to be more accurate. I don't think that it's worth it to attempt to enhance Python 3.8 error reporting, since Python 3.9 got a whole new parser. @apu$ python3.8 x.py File "x.py", line 4 open('file1', 'w') as file1,