Re: variable arguments question

2005-03-15 Thread Roel Schroeven
vegetax wrote: > if i have a dictionary: > d = {'a':2,'b':3 } > l = (1,2) > > how can i pass it to a generic function that takes variable keywords as > arguments? same thing with variable arguments, i need to pass a list of > arguments to the function > > def asd(**kw): print kw > def efg(*arg):

Re: variable arguments question

2005-03-15 Thread Stephan Diehl
On Tue, 15 Mar 2005 03:48:40 -0400, vegetax wrote: > if i have a dictionary: > d = {'a':2,'b':3 } > l = (1,2) > > how can i pass it to a generic function that takes variable keywords as > arguments? same thing with variable arguments, i need to pass a list of > arguments to the function > > def

Re: variable arguments question

2005-03-14 Thread Swaroop C H
--- vegetax <[EMAIL PROTECTED]> wrote: > how can i pass it to a generic function that takes variable > keywords as > arguments? same thing with variable arguments, i need to pass a > list of > arguments to the function > > def asd(**kw): print kw > def efg(*arg): print arg > > asd(d) > doesnt wo

variable arguments question

2005-03-14 Thread vegetax
if i have a dictionary: d = {'a':2,'b':3 } l = (1,2) how can i pass it to a generic function that takes variable keywords as arguments? same thing with variable arguments, i need to pass a list of arguments to the function def asd(**kw): print kw def efg(*arg): print arg asd(d) doesnt work asd