A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://mail.python.org/pipermail/python-dev/2008-June/080781.html below:

[Python-Dev] repeated keyword arguments

[Python-Dev] repeated keyword arguments [Python-Dev] repeated keyword argumentstomer 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

RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4