I have a function foo taking a dictionary as parameters. i.e.: def
foo(**kwargs): pass
when I call foo(param1='blah',param2='bleh',param3='blih') everything
is fine.
but when I do:
def foo(**kwargs): .... pass
.... d=dict(param1='blah',param2='bleh',param3='blih')
foo(d)
I get:
Traceback (most recent call last):
File "<stdin>", line 1, in ?
TypeError: foo() takes exactly 0 arguments (1 given)
Why? how do I pass the dictionary *d* to foo()?
Thanks,
- Josh.