def __init__(self, link, *arg, **key):
Hi i m a newbie to python .. jus started to learn ...am quite confused about variable arguments used in python functions and in init. i dont where to use **keys , **kwds,*args ...etc... if anyone culd give some explanation with examples or clear detailed web link, it wuld be helpful to me thanks in advance i have a python code like shown below examples: def __init__(self, link, *arg, **key): blah blah def setTransponderDefaultConfiguration(self, *arg, **kwds): blah blah -- http://mail.python.org/mailman/listinfo/python-list
Re: def __init__(self, link, *arg, **key):
flogic wrote: > Hi > i m a newbie to python .. > jus started to learn ...am quite confused about variable arguments used > in python functions and in init. > > i dont where to use **keys , **kwds,*args ...etc... > > if anyone culd give some explanation with examples or clear detailed > web link, it wuld be helpful to me > Have you read sections 4.7.2-4.7.4 of the Tutorial? http://docs.python.org/tut/node6.html#SECTION00672 -- http://mail.python.org/mailman/listinfo/python-list
Re: def __init__(self, link, *arg, **key):
Thanks a lot... CIAO Duncan Booth wrote: > flogic wrote: > > > Hi > > i m a newbie to python .. > > jus started to learn ...am quite confused about variable arguments used > > in python functions and in init. > > > > i dont where to use **keys , **kwds,*args ...etc... > > > > if anyone culd give some explanation with examples or clear detailed > > web link, it wuld be helpful to me > > > Have you read sections 4.7.2-4.7.4 of the Tutorial? > > http://docs.python.org/tut/node6.html#SECTION00672 -- http://mail.python.org/mailman/listinfo/python-list