Re: Syntax Help

2020-06-11 Thread DL Neil via Python-list
On 12/06/20 12:13 AM, Terry Reedy wrote: On 6/11/2020 6:03 AM, John Weller wrote: I have been able to find answers to most problems by Googling but couldn't work out a suitable query for this one. That is why I and others have made the Symbols index as complete as possible.  If anything think

Re: Syntax Help

2020-06-11 Thread Terry Reedy
On 6/11/2020 6:03 AM, John Weller wrote: I have been able to find answers to most problems by Googling but couldn't work out a suitable query for this one. That is why I and others have made the Symbols index as complete as possible. If anything thinks something is missing, say so here. --

RE: Syntax Help

2020-06-11 Thread John Weller
Neil via Python-list Sent: 10 June 2020 22:13 To: python-list@python.org Subject: Re: Syntax Help On 11/06/20 4:56 AM, John Weller wrote: > I am trying to learn python. Looking at an example on the web I found > this > line: > def plot(*args, **kwargs): > What do the stars mean

Re: Syntax Help

2020-06-10 Thread Python
Le 10/06/2020 à 18:56, John Weller a écrit : Hi I am trying to learn python. Looking at an example on the web I found this line: def plot(*args, **kwargs): What do the stars mean? That, respectively, positional arguments will be packed into a sequence of references called arg

Re: Syntax Help

2020-06-10 Thread Terry Reedy
On 6/10/2020 12:56 PM, John Weller wrote: I am trying to learn python. Looking at an example on the web I found this line: def plot(*args, **kwargs): This is function definition. What do the stars mean? The python docs have an index that has a Symbols page. https://docs.python.org/3/ge

Re: Syntax Help

2020-06-10 Thread DL Neil via Python-list
On 11/06/20 4:56 AM, John Weller wrote: I am trying to learn python. Looking at an example on the web I found this line: def plot(*args, **kwargs): What do the stars mean? The Python "docs" are (surprisingly, for this day-and-age) comprehensive. Try https://docs.python.org/3/tutorial/control

Re: Syntax help

2011-01-26 Thread Tim Chase
On 01/26/2011 04:05 AM, Jean-Michel Pichavant wrote: How to read syntax like this given in the documentation of python? (Newbie) defparameter ::= parameter ["=" expression] Just in case you're about to learn python using these defintions: Nobody's learning a syntax that way. They are not m

Re: Syntax help

2011-01-26 Thread Jean-Michel Pichavant
sl33k_ wrote: How to read syntax like this given in the documentation of python? (Newbie) defparameter ::= parameter ["=" expression] http://docs.python.org/reference/compound_stmts.html#function-definitions Just in case you're about to learn python using these defintions: Nobody's lea

Re: Syntax help

2011-01-26 Thread c...@thansen.de
On 26.01.2011 09:08, sl33k_ wrote: How to read syntax like this given in the documentation of python? (Newbie) defparameter ::= parameter ["=" expression] http://en.wikipedia.org/wiki/Backus-Naur_Form -- http://mail.python.org/mailman/listinfo/python-list

Re: Syntax help

2011-01-26 Thread Steven D'Aprano
On Wed, 26 Jan 2011 00:08:41 -0800, sl33k_ wrote: > How to read syntax like this given in the documentation of python? > (Newbie) > > defparameter ::= parameter ["=" expression] > > http://docs.python.org/reference/compound_stmts.html#function- definitions See here for an explanation: http: