mirror of
https://github.com/python/cpython.git
synced 2025-08-03 16:39:00 +00:00
bpo-40147: Move the check for duplicate keywords to the compiler (GH-19289)
This commit is contained in:
parent
bd6a4c3d72
commit
254ec78341
4 changed files with 32 additions and 12 deletions
|
@ -128,7 +128,7 @@ Check for duplicate keywords.
|
|||
...
|
||||
Traceback (most recent call last):
|
||||
[...]
|
||||
SyntaxError: keyword argument repeated
|
||||
SyntaxError: keyword argument repeated: metaclass
|
||||
>>>
|
||||
|
||||
Another way.
|
||||
|
|
|
@ -588,7 +588,7 @@ Make sure that the old "raise X, Y[, Z]" form is gone:
|
|||
>>> f(a=23, a=234)
|
||||
Traceback (most recent call last):
|
||||
...
|
||||
SyntaxError: keyword argument repeated
|
||||
SyntaxError: keyword argument repeated: a
|
||||
|
||||
>>> {1, 2, 3} = 42
|
||||
Traceback (most recent call last):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue