optional arguments to pattern.findall()

Discussion in 'Python' started by Ezequiel, Justin, May 5, 2004.

  1. 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.
    Ezequiel, Justin, May 5, 2004
    #1
    1. Advertising

  2. Ezequiel, Justin

    Peter Otten Guest

    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
    Peter Otten, May 5, 2004
    #2
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Karunakararao
    Replies:
    0
    Views:
    314
    Karunakararao
    Oct 6, 2004
  2. Paul Probert

    optional arguments in c extensions

    Paul Probert, Oct 24, 2003, in forum: Python
    Replies:
    1
    Views:
    256
    Paul Probert
    Oct 24, 2003
  3. Roger Upole
    Replies:
    0
    Views:
    391
    Roger Upole
    Dec 1, 2003
  4. Jason

    optional arguments..

    Jason, Apr 28, 2006, in forum: C Programming
    Replies:
    5
    Views:
    304
    Peter Shaggy Haywood
    Apr 30, 2006
  5. Rob Hoelz

    Getting at optional arguments

    Rob Hoelz, Jan 15, 2007, in forum: C Programming
    Replies:
    6
    Views:
    345
    Default User
    Jan 16, 2007
Loading...

Share This Page