Issue 3219: repeated keyword arguments (original) (raw)

Issue3219

This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

This issue has been migrated to GitHub: https://github.com/python/cpython/issues/47469

classification

Title: repeated keyword arguments
Type: behavior Stage:
Components: Interpreter Core Versions: Python 3.0, Python 2.6

process

Status: closed Resolution: fixed
Dependencies: Superseder:
Assigned To: Nosy List: benjamin.peterson, gangesmaster, giampaolo.rodola, gvanrossum
Priority: critical Keywords: patch

Created on 2008-06-27 19:17 by gangesmaster, last changed 2022-04-11 14:56 by admin. This issue is now closed.

Files
File name Uploaded Description Edit
repeated_kwargs.patch benjamin.peterson,2008-06-27 20:42
Messages (4)
msg68847 - (view) Author: ganges master (gangesmaster) Date: 2008-06-27 19:17
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
msg68852 - (view) Author: Benjamin Peterson (benjamin.peterson) * (Python committer) Date: 2008-06-27 20:42
The attached patch gives a SyntaxError.
msg68862 - (view) Author: Guido van Rossum (gvanrossum) * (Python committer) Date: 2008-06-27 22:57
Don't do this for 2.5 please.
msg69059 - (view) Author: Benjamin Peterson (benjamin.peterson) * (Python committer) Date: 2008-07-01 19:35
Done for 2.6 in r64622. (Georg reviewed.)
History
Date User Action Args
2022-04-11 14:56:35 admin set github: 47469
2008-07-01 19:35:30 benjamin.peterson set status: open -> closedresolution: fixedmessages: +
2008-06-27 22:57:26 gvanrossum set nosy: + gvanrossummessages: + versions: + Python 3.0, - Python 2.5
2008-06-27 20:42:25 benjamin.peterson set priority: criticalfiles: + repeated_kwargs.patchmessages: + keywords: + patchnosy: + benjamin.peterson
2008-06-27 19:35:25 giampaolo.rodola set nosy: + giampaolo.rodola
2008-06-27 19:17:45 gangesmaster create