[Python-Dev] repeated keyword arguments

tomer filiba tomerfiliba at gmail.com
Fri Jun 27 21:07:30 CEST 2008


the following code works on python 2.5:

>>> def f(**kwargs):
...     print kwargs
...
>>> f(a=5,b=7,a=8)
{'a': 8, 'b': 7}
>>>

but fails on python2.4, saying that "a" is given twice.
is this a bug or a feature?


-tomer
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-dev/attachments/20080627/900bc8cc/attachment.htm>


More information about the Python-Dev mailing list