[issue41982] Wrong location flagged as syntax error

2020-10-09 Thread iljah
iljah added the comment: Python 3.8.5 -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue41982] Wrong location flagged as syntax error

2020-10-09 Thread iljah
New submission from iljah : File: #! /usr/bin/env python3 with \ open('file1', 'w') as file1, open('file2', 'w') as file2: print('ok') gives error: File "./test.py", line 3 open('file1', 'w') as file1, ^ SyntaxError: invalid syntax but adding \ after