Re: passing *args recursively

2008-05-13 Thread Mikael Olofsson
Guillermo wrote: This must be very basic, but how'd you pass the same *args several levels deep? def func2(*args) print args # ((1, 2, 3),) # i want this to output (1, 2, 3) as func1! # there must be some better way than args[0]? def func1(*args): print args # (1, 2, 3)

Re: passing *args recursively

2008-05-13 Thread Mikael Olofsson
Guillermo wrote: This must be very basic, but how'd you pass the same *args several levels deep? def func2(*args) print args # ((1, 2, 3),) # i want this to output (1, 2, 3) as func1! # there must be some better way than args[0]? def func1(*args): print args # (1, 2, 3)

Re: passing *args recursively

2008-05-13 Thread Gary Duzan
In article [EMAIL PROTECTED], Guillermo [EMAIL PROTECTED] wrote: Hi, This must be very basic, but how'd you pass the same *args several levels deep? def func2(*args) print args # ((1, 2, 3),) # i want this to output (1, 2, 3) as func1! # there must be some better way than

passing *args recursively

2008-05-12 Thread Guillermo
Hi, This must be very basic, but how'd you pass the same *args several levels deep? def func2(*args) print args # ((1, 2, 3),) # i want this to output (1, 2, 3) as func1! # there must be some better way than args[0]? def func1(*args): print args # (1, 2, 3) func2(args)

Re: passing *args recursively

2008-05-12 Thread Jerry Hill
On Mon, May 12, 2008 at 12:19 PM, Guillermo [EMAIL PROTECTED] wrote: def func1(*args): print args # (1, 2, 3) func2(args) change this line to: func2(*args) -- Jerry -- http://mail.python.org/mailman/listinfo/python-list

Re: passing *args recursively

2008-05-12 Thread Matimus
On May 12, 9:19 am, Guillermo [EMAIL PROTECTED] wrote: Hi, This must be very basic, but how'd you pass the same *args several levels deep? def func2(*args) print args # ((1, 2, 3),) # i want this to output (1, 2, 3) as func1! # there must be some better way than args[0]?