Asterisk in Python

sarmin kho sarmin_kho at yahoo.com
Thu Feb 26 07:58:07 EST 2004


Hi Pythoners...
 
I am definitely confused with the use of asterisk (*) sign in python...
I quoted the following code from 'python cookbook' text book page 223 about 'running functions in the future'...
 
it says:
def __init__(self,func, *param):
    bla bla bla...
 
then it says:
self.__result = func(*param):
 
it also says:
def Wrapper(self, func, param):
    bla bla bla...
 
my question is : what is the asterisk (*) sign for and what is the different between 'param' and ' *param ' ?? 
 
many thanks Pythoners...
 
regards...
sarmin
 
 


---------------------------------
Do you Yahoo!?
Get better spam protection with Yahoo! Mail
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-list/attachments/20040226/f137cc72/attachment.html>


More information about the Python-list mailing list