dynamic function parameters for **kwargs

bab mis babmis307 at gmail.com
Fri Sep 20 11:51:46 EDT 2013


Hi ,
I have a function as below:

def func(**kwargs):
    ...
    ...



====
args="a='b',c='d'"

i want to call func(args) so that my function call will take a var as an parameter.

it fails with an error "typeError: fun() takes exactly 0 arguments (1 given)" 

. Is there any other way to get the same.



More information about the Python-list mailing list