This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author vstinner
Recipients iljah, lys.nikolaou, pablogsal, vstinner
Date 2020-10-09.13:47:25
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1602251245.06.0.392800901377.issue41982@roundup.psfhosted.org>
In-reply-to
Content
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,
                         ^
SyntaxError: invalid syntax


$ python3.9 x.py 
  File "/home/vstinner/x.py", line 4
    open('file1', 'w') as file1,
                                ^
SyntaxError: invalid syntax
History
Date User Action Args
2020-10-09 13:47:25vstinnersetrecipients: + vstinner, lys.nikolaou, pablogsal, iljah
2020-10-09 13:47:25vstinnersetmessageid: <1602251245.06.0.392800901377.issue41982@roundup.psfhosted.org>
2020-10-09 13:47:25vstinnerlinkissue41982 messages
2020-10-09 13:47:25vstinnercreate