Message398652
Reopening as a release blocker.
It appears that this new rule is far too eager, and matches a much wider range of inputs than intended. Here is a case where it changes an IndentationError into a SyntaxError:
$ cat bug.py
print()
boom
On 3.9 (correct):
$ ./python.exe --version
Python 3.9.6+
$ ./python.exe bug.py
File "/Users/brandtbucher/Desktop/GitHub/cpython/bug.py", line 2
boom
IndentationError: unexpected indent
On 3.10 (incorrect):
$ ./python.exe --version
Python 3.10.0b4+
$ ./python.exe bug.py
File "/Users/brandtbucher/Desktop/GitHub/cpython/bug.py", line 1
print()
^^^^^^^
SyntaxError: Missing parentheses in call to 'print'. Did you mean print(...)?
On 3.11 (incorrect):
$ ./python.exe --version
Python 3.11.0a0
$ ./python.exe bug.py
File "/Users/brandtbucher/Desktop/GitHub/cpython/bug.py", line 1
print()
^^^^^^^
SyntaxError: Missing parentheses in call to 'print'. Did you mean print(...)?
I recommend that this either be fixed or reverted before the RC. |
|
Date |
User |
Action |
Args |
2021-07-31 17:25:32 | brandtbucher | set | recipients:
+ brandtbucher, terry.reedy, ncoghlan, eric.smith, aroberge, serhiy.storchaka, veky, ammar2, CuriousLearner, corona10, lys.nikolaou, nitishch, pablogsal, miss-islington, xtreak, piyushhajare, iritkatriel |
2021-07-31 17:25:32 | brandtbucher | set | messageid: <1627752332.51.0.421382275097.issue34013@roundup.psfhosted.org> |
2021-07-31 17:25:32 | brandtbucher | link | issue34013 messages |
2021-07-31 17:25:31 | brandtbucher | create | |
|