[issue3219] repeated keyword arguments
ganges master
report at bugs.python.org
Fri Jun 27 21:17:46 CEST 2008
New submission from ganges master <gangesmaster at users.sourceforge.net>:
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")
http://mail.python.org/pipermail/python-dev/2008-June/080782.html
----------
components: Interpreter Core
messages: 68847
nosy: gangesmaster
severity: normal
status: open
title: repeated keyword arguments
type: behavior
versions: Python 2.5, Python 2.6
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue3219>
_______________________________________
More information about the Python-bugs-list
mailing list