asides-12
· #asides
For some reason, I realized only today that in Python, dict unpacking works just like tuple unpacking.
>>> def fn1(x=1, y=2):
... print x, y
...
>>> d = {'x':'hello', 'y':'world'}
>>> fn1(**d)
hello world
>>>
· #asides
For some reason, I realized only today that in Python, dict unpacking works just like tuple unpacking.
>>> def fn1(x=1, y=2):
... print x, y
...
>>> d = {'x':'hello', 'y':'world'}
>>> fn1(**d)
hello world
>>>