Re: Prepackaged function args

2009-05-18 Thread John O'Hagan
On Mon, 18 May 2009, boblat...@googlemail.com wrote: > Hello group, > > suppose I've got a function f() that takes N parameters, and a list > (or tuple) arg[] with N elements that I'd like to pass as parameters. > The straightforward function call looks like this: > > result = f(arg[0], arg[1], ...

Re: Prepackaged function args

2009-05-18 Thread Chris Rebert
On Mon, May 18, 2009 at 1:36 AM, boblat...@googlemail.com wrote: > Hello group, > > suppose I've got a function f() that takes N parameters, and a list > (or tuple) arg[] with N elements that I'd like to pass as parameters. > The straightforward function call looks like this: > > result = f(arg[0]

Prepackaged function args

2009-05-18 Thread boblat...@googlemail.com
Hello group, suppose I've got a function f() that takes N parameters, and a list (or tuple) arg[] with N elements that I'd like to pass as parameters. The straightforward function call looks like this: result = f(arg[0], arg[1], ..., arg[N-1]) Is there a less verbose way of accomlishing this? T