Re: parameter list notation

2007-09-04 Thread TheFlyingDutchman
> > Perhaps you could move further discussions to comp.lang.piethun? > Fair enough. Will contain PIEthun discussion to the PIEthun mailing list and the aforementioned newsgroup once it is established. It suddenly dawned on me while rereading my defense of my use of the term "array" that I w

Re: parameter list notation

2007-09-04 Thread Steve Holden
TheFlyingDutchman wrote: > On Sep 4, 1:53 pm, Steven D'Aprano <[EMAIL PROTECTED] > cybersource.com.au> wrote: >> On Mon, 03 Sep 2007 22:10:41 -0700, TheFlyingDutchman wrote: >>> Well I did a search on "Python variable length arguments" and found a >>> hit that seems to explain the *fields parameter

Re: parameter list notation

2007-09-04 Thread TheFlyingDutchman
On Sep 4, 1:53 pm, Steven D'Aprano <[EMAIL PROTECTED] cybersource.com.au> wrote: > On Mon, 03 Sep 2007 22:10:41 -0700, TheFlyingDutchman wrote: > > Well I did a search on "Python variable length arguments" and found a > > hit that seems to explain the *fields parameter: > > > When you declare an ar

Re: parameter list notation

2007-09-04 Thread Steven D'Aprano
On Mon, 03 Sep 2007 22:10:41 -0700, TheFlyingDutchman wrote: > Well I did a search on "Python variable length arguments" and found a > hit that seems to explain the *fields parameter: > > When you declare an argment to start with '*', it takes the argument > list into an array. No it doesn't.

Re: parameter list notation

2007-09-04 Thread Steven D'Aprano
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 rep

Re: parameter list notation

2007-09-04 Thread TheFlyingDutchman
Steve, Ben, Duncan, Thanks for the replies. TFD -- http://mail.python.org/mailman/listinfo/python-list

Re: parameter list notation

2007-09-04 Thread Duncan Booth
TheFlyingDutchman <[EMAIL PROTECTED]> 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, wh

Re: parameter list notation

2007-09-03 Thread Ben Finney
TheFlyingDutchman <[EMAIL PROTECTED]> writes: > 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. It would seem, then, that you haven't followed the exercises in the Python

Re: parameter list notation

2007-09-03 Thread Steve Holden
TheFlyingDutchman wrote: > Well I did a search on "Python variable length arguments" and found a > hit that seems to explain the *fields parameter: > > When you declare an argment to start with '*', it takes the argument > list into an array. > > def foo(*args): > print "Number of arguments:",

Re: parameter list notation

2007-09-03 Thread TheFlyingDutchman
Well I did a search on "Python variable length arguments" and found a hit that seems to explain the *fields parameter: When you declare an argment to start with '*', it takes the argument list into an array. def foo(*args): print "Number of arguments:", len(args) print "Arguments are: ", args

parameter list notation

2007-09-03 Thread TheFlyingDutchman
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