Benjamin Peterson [EMAIL PROTECTED] added the comment:
Done for 2.6 in r64622. (Georg reviewed.)
--
resolution: - fixed
status: open - closed
___
Python tracker [EMAIL PROTECTED]
http://bugs.python.org/issue3219
New submission from ganges master [EMAIL PROTECTED]:
under python 2.5 (and possibly 2.6 beta), the following code runs
successfully:
def f(**kwargs):
... print kwargs
...
f(a=5,b=7,a=8)
{'a': 8, 'b': 7}
while in python 2.4, it fails as expected (complaining that a is given
twice)
Benjamin Peterson [EMAIL PROTECTED] added the comment:
The attached patch gives a SyntaxError.
--
keywords: +patch
nosy: +benjamin.peterson
priority: - critical
Added file: http://bugs.python.org/file10755/repeated_kwargs.patch
___
Python tracker
Guido van Rossum [EMAIL PROTECTED] added the comment:
Don't do this for 2.5 please.
--
nosy: +gvanrossum
versions: +Python 3.0 -Python 2.5
___
Python tracker [EMAIL PROTECTED]
http://bugs.python.org/issue3219
___