bpo-40147: Move the check for duplicate keywords to the compiler (GH-19289)

This commit is contained in:
Pablo Galindo 2020-04-03 20:37:13 +01:00 committed by GitHub
parent bd6a4c3d72
commit 254ec78341
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 32 additions and 12 deletions

View file

@ -128,7 +128,7 @@ Check for duplicate keywords.
...
Traceback (most recent call last):
[...]
SyntaxError: keyword argument repeated
SyntaxError: keyword argument repeated: metaclass
>>>
Another way.

View file

@ -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):