#3219 repeated keyword arguments aren't allowed in function calls anymore

This commit is contained in:
Benjamin Peterson 2008-07-01 19:34:52 +00:00
parent 1f40c8a8d7
commit 175e4d9663
3 changed files with 19 additions and 0 deletions

View file

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