parameter list notation

Steven D'Aprano steve at REMOVE-THIS-cybersource.com.au
Tue Sep 4 17:55:32 CEST 2007


On Mon, 03 Sep 2007 22:00:28 -0700, TheFlyingDutchman wrote:

> I am trying to use a database written in Python called buzhug.
> 
> In looking at some of the functions I see this prototype:
> 
>     def create(self,*fields,**kw):
> 
> I am not clear on what the * and the ** are for or what they represent.
> Or, what are they referred to as so I can do a query for information on
> them.

And yet you're making your own fork of Python.

Good luck with that! Do let us know how it works out for you.

For the record, your question is answered in the FAQ:
http://www.python.org/doc/faq/programming/

and in the tutorial:
http://docs.python.org/tut/node6.html



-- 
Steven.



More information about the Python-list mailing list