David Wolever wrote:
I don't have 2.4 handy to test it, but it is more likely that a keyword
and dictionary are passed, both containing the same item:
>>> f(a=3, **{'a': 4})
Would that be a potential risk?
Python 2.4.3
>>> f(a=3, **{'a': 4})
Traceback (most recent call last):
File "<stdin>", line 1, in ?
TypeError: f() got multiple values for keyword argument 'a'
Python 2.5
>>> f(a=3, **{'a': 4})
TypeError: f() got multiple values for keyword argument 'a'
The regression is purely in the way an argument list is reduced to a
dictionary.
--
Scott Dial
[EMAIL PROTECTED]
[EMAIL PROTECTED]
_______________________________________________
Python-Dev mailing list
Python-Dev@python.org
http://mail.python.org/mailman/listinfo/python-dev
Unsubscribe:
http://mail.python.org/mailman/options/python-dev/archive%40mail-archive.com