V
vida00
this has to be a very silly thing.
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:.... pass
....
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.
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:.... pass
....
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.