Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Python > optional arguments to pattern.findall()

Reply
Thread Tools

optional arguments to pattern.findall()

 
 
Ezequiel, Justin
Guest
Posts: n/a
 
      05-05-2004
In a thread with subject RE: Difficulty Finding Python Developers, Bill
Anderson wrote:
>foo = re.compile(regex)
>foo.findall(stringtosearchon,0,50)[-1]


Where can I find documentation on the optional arguments to findall()?
Have gone to http://python.org/doc/current/lib/module-re.html and did
not find any mention of these.

PythonWin 2.2.2 (#37, Oct 14 2002, 17:02:34) [MSC 32 bit (Intel)] on
win32.

 
Reply With Quote
 
 
 
 
Peter Otten
Guest
Posts: n/a
 
      05-05-2004
Ezequiel, Justin wrote:

> In a thread with subject RE: Difficulty Finding Python Developers, Bill
> Anderson wrote:
>>foo = re.compile(regex)
>>foo.findall(stringtosearchon,0,50)[-1]

>
> Where can I find documentation on the optional arguments to findall()?
> Have gone to http://python.org/doc/current/lib/module-re.html and did
> not find any mention of these.


In Python 2.3.3 you have to dig to the C source to find the pos/endpos
parameters. You might file a bug to see if this is intentional.

Peter

 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
optional arguments with compact reporting in optparse braver Python 3 11-12-2007 10:33 PM
Getting at optional arguments Rob Hoelz C Programming 6 01-16-2007 04:41 PM
optional arguments.. Jason C Programming 5 04-30-2006 06:15 AM
PyArg_ParseTupleAndKeywords and optional unicode arguments Roger Upole Python 0 12-01-2003 09:22 AM
optional arguments in c extensions Paul Probert Python 1 10-24-2003 10:16 PM



Advertisments