Re: passing variable arguments to a function

2005-10-13 Thread Fredrik Lundh
Ryan Wilcox wrote: > I want to be able to pass a variable number of parameters into a Python > function. Now, I know how to _receive_ variable arguments, but I don't > know how to _send_ them. > > def myFunction(*args): > print args > > myList = [1, 2, 3, 4] > myFunction(myList) > > this funct

Re: passing variable arguments to a function

2005-10-13 Thread Christophe
Ryan Wilcox a écrit : > Hello all, > > I want to be able to pass a variable number of parameters into a Python > function. Now, I know how to _receive_ variable arguments, but I don't > know how to _send_ them. > > def myFunction(*args): > print args > > myList = [1, 2, 3, 4] > myFunction(my