mirror of
https://github.com/python/cpython.git
synced 2025-07-30 06:34:15 +00:00
#3219 repeated keyword arguments aren't allowed in function calls anymore
This commit is contained in:
parent
1f40c8a8d7
commit
175e4d9663
3 changed files with 19 additions and 0 deletions
|
@ -417,6 +417,11 @@ leading to spurious errors.
|
|||
...
|
||||
SyntaxError: can't assign to function call (<doctest test.test_syntax[48]>, line 6)
|
||||
|
||||
>>> f(a=23, a=234)
|
||||
Traceback (most recent call last):
|
||||
...
|
||||
SyntaxError: keyword argument repeated (<doctest test.test_syntax[49]>, line 1)
|
||||
|
||||
"""
|
||||
|
||||
import re
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue