
1 Apr
2008
1 Apr
'08
7:25 p.m.
On 31 Mar, 16:17, Mathias Panzenböck grosser.meister.mo...@gmx.net 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?
I think this is one of the oddest things I've ever seen proposed until now. :) Actually I realized what was that for only after having seen Facundo's list comprehension translation.