RE: Passing every element of a list as argument to a function

2011-08-09 Thread Prasad, Ramit
-Original Message- From: python-list-bounces+ramit.prasad=jpmorgan@python.org [mailto:python-list-bounces+ramit.prasad=jpmorgan@python.org] On Behalf Of Antonio Vera Sent: Tuesday, August 09, 2011 12:02 PM To: python-list@python.org Subject: Passing every element of a list as argu

Re: Passing every element of a list as argument to a function

2011-08-09 Thread Chris Angelico
On Tue, Aug 9, 2011 at 6:02 PM, Antonio Vera wrote: > Hi!, > I have a very simple syntax question. I want to evaluate a library > function f receiving an arbitrary number of arguments (like > itertools.product), on the elements of a list l. This means that I > want to compute f(l[0],l[1],...,l[len