Asterisk in Python

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • sarmin kho

    Asterisk in Python

    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,f unc, *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
  • Peter Otten

    #2
    Re: Asterisk in Python

    sarmin kho wrote:
    [color=blue]
    > my question is : what is the asterisk (*) sign for and what is the
    > different between 'param' and ' *param ' ??[/color]

    Please be patient, and do not repost the same question.

    While you are waiting for a detailed answer, you might read the tutorial:
    The official home of the Python Programming Language


    Peter

    Comment

    Working...