[Python-ideas] dictionary unpacking

Mathias Panzenböck grosser.meister.morti at gmx.net
Tue Apr 1 12:36:57 CEST 2008


Aahz schrieb:
> On Mon, Mar 31, 2008, Mathias Panzenb?ck wrote:
>> Maybe dictionary unpacking would be a nice thing?
>>
>>  >>> d = {'foo': 42, 'egg': 23}
>>  >>> {'foo': bar, 'egg': spam} = d
>>  >>> print bar, spam
>> 42 23
>>
>> What do you think? Bad idea? Good idea?
> 
> Horrible idea.  ;-)

And your argumentation on this is?



More information about the Python-ideas mailing list