Le Thu, 5 Feb 2009 08:57:15 -0000,
"Alan Gauld" <[email protected]> a écrit :

> 
> "amit sethi" <[email protected]> wrote
> 
> > How do you pass arguments of unknown no. of arguments to a function.
> 
> search the docs for *args and *kwargs
> 

Or simply pass a tuple:

def myPrint(thing):
        print thing
thing_of_things = (1,'a',[True])
myPrint(thing_of_things)
==>
(1,'a',[True])

Denis
------
la vida e estranya
_______________________________________________
Tutor maillist  -  [email protected]
http://mail.python.org/mailman/listinfo/tutor

Reply via email to