Re: newbie question: apply()

2008-10-04 Thread TK
pos_args = ["spam", 1, [3]] kwd_args = {"b":7, "c":9} result = some_function(*pos_args, **kwd_args) Which is equivalent to: result = some_function("spam", 1, [3], b=7, c=9) Which was equivalent to: result = apply(some_function, pos_args, kwd_args) Thanks a lot. o-o Thomas -- http://mail.pyth

Re: newbie question: apply()

2008-10-04 Thread Chris Rebert
On Sat, Oct 4, 2008 at 2:25 AM, TK <[EMAIL PROTECTED]> wrote: > HI, > > I need an example for the usage of the apply()-function. Can you help me? Don't use the apply() function, it's deprecated and unnecessary thanks to Python's enhanced calling syntax, which is described in depth on http://www.py