On Tue, Aug 9, 2011 at 6:02 PM, Antonio Vera <chichim...@gmail.com> 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(l)-1]). > > Is there any operation "op" such that f(op(l)) will give the sequence > of elements of l as arguments to f?
Yep! f(*l) Chris Angelico -- http://mail.python.org/mailman/listinfo/python-list