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

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
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? T

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

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.

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

Syntax Help

2020-06-10 Thread John Weller
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? TIA John Weller 01380 723235 07976 393631 -- https://mail.python.org/mailman/listinfo/python-list

Syntax help

2011-01-26 Thread sl33k_
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 -- 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:

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 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

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

SWIG: Window syntax help

2009-03-26 Thread Muddy Coder
Hi Folks, I am learning SWIG, with a doggy C file test.c. I have made test.i, the interface file, then I ran: C:swig -python test.i --- smooth C:cl -c test.c test_wrap.c -IC:\Python25\include nice, test.obj, test_wrap.obj, test.py files were created But the final step I got error

Re: Regular Expression Syntax Help

2006-02-08 Thread Raja Raman Sundararajan
Oh! yes you can use re for that. You just need to change the pattern a bit I did not understand where the title will be so I have ignored it, but I got something below which will be helpful for you value = name:asasasasas\nrequest: play\ntitle reg = re.compile('Name:.*\\nrequest:.',

Regular Expression Syntax Help

2006-02-07 Thread Ernesto
I'm trying to get the right syntax for my regular expression. The string I'm trying to parse is: # myString [USELESS DATA] Name: David Dude [USELESS DATA] Right now, I'm using the following code: pattern_Name= '''(?x) Title:\s+(\w+)\s+ ''' names = re.findall(pattern_Name, myString) print

Re: Regular Expression Syntax Help

2006-02-07 Thread Ernesto
The word Title there should be Name. What I really need is the pattern for getting the entire string after Name: until a '\n' is found. -- http://mail.python.org/mailman/listinfo/python-list

Re: Regular Expression Syntax Help

2006-02-07 Thread Raja Raman Sundararajan
try this. maybe this is what you want? reg = re.compile('Name:.*\\n', re.IGNORECASE) -- http://mail.python.org/mailman/listinfo/python-list

Re: Regular Expression Syntax Help

2006-02-07 Thread Ernesto
So now I need to add the requirement that only Name: 's which are followed by Request: Play or Request: Next ANYWHERE between the previous titles and the new titles. Can I use RE's for that ? Ernesto wrote: I'm trying to get the right syntax for my regular expression. The string I'm trying

DDE syntax help

2005-01-25 Thread Dana Marcusanu
Hello, I am trying to convert an Excel SpreadSheet to Python. The formula in Excel for one of the cells is =DDE(ser1,ser2,ser3). The name of the server is ser1, ser2 is the topic, and ser3 is an item. I already tried using: import dde ddes = dde.CreateServer() ddes.Create(ser1) ddec =