[Python-Dev] repeated keyword arguments
David Wolever
wolever at cs.toronto.edu
Fri Jun 27 23:30:20 CEST 2008
On 27-Jun-08, at 6:23 PM, Benjamin Peterson wrote:
> On Fri, Jun 27, 2008 at 2:11 PM, Guido van Rossum
> <guido at python.org> wrote:
>> Sounds like a regression in 2.5 (and in 2.6, and in 3.0). Probably
>> due
>> to the switch to the new AST-based compiler. Can you file a bug? I
>> think we should leave 2.5 alone (too much risk of breaking code) but
>> fix it in 2.6 and 3.0 if we can.
>
> I think code that uses this is probably already quite broken in some
> fundamental way and putting the fix in 2.5 isn't much of a risk.
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?
More information about the Python-Dev
mailing list