mirror of
https://github.com/python/cpython.git
synced 2025-08-04 17:08:35 +00:00
bpo-43797: Handle correctly invalid assignments inside function calls and generators (GH-25390)
This commit is contained in:
parent
fd79af7ae2
commit
30ed93bfec
4 changed files with 21 additions and 9 deletions
|
@ -103,7 +103,7 @@ Verify that parenthesis are required when used as a keyword argument value
|
|||
>>> dict(a = i for i in range(10))
|
||||
Traceback (most recent call last):
|
||||
...
|
||||
SyntaxError: invalid syntax. Maybe you meant '==' or ':=' instead of '='?
|
||||
SyntaxError: invalid syntax
|
||||
|
||||
Verify that parenthesis are required when used as a keyword argument value
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue