Message394087
This seems a regression from 3.9.
>>> foo[x = 1
... ]
File "<stdin>", line 1
foo[x = 1
^^^^^
SyntaxError: invalid syntax. Maybe you meant '==' or ':=' instead of '='?
>>>
Note how the syntax error is in line 1 and yet the REPL asks for more input (the "..." prompt) and doesn't stop until I type "]".
In 3.9 I just get "SyntaxError: invalid syntax" but the REPL doesn't ask for the second line:
>>> foo[x = 1
File "<stdin>", line 1
foo[x = 1
^
SyntaxError: invalid syntax
>>> |
|
Date |
User |
Action |
Args |
2021-05-21 00:34:22 | gvanrossum | set | recipients:
+ gvanrossum |
2021-05-21 00:34:22 | gvanrossum | set | messageid: <1621557262.74.0.483507293797.issue44201@roundup.psfhosted.org> |
2021-05-21 00:34:22 | gvanrossum | link | issue44201 messages |
2021-05-21 00:34:22 | gvanrossum | create | |
|