Re: dynamic function parameters for **kwargs

2013-09-20 Thread Rotwang
On 20/09/2013 16:51, bab mis wrote: 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)

Re: dynamic function parameters for **kwargs

2013-09-20 Thread stas poritskiy
On Friday, September 20, 2013 10:51:46 AM UTC-5, bab mis wrote: > 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 >

dynamic function parameters for **kwargs

2013-09-20 Thread bab mis
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