Re: [Python-Dev] Arguments of MatchObject in re module

2009-05-27 Thread Aahz
On Tue, May 26, 2009, MRAB wrote: > > >>> p = re.compile("foo") > >>> help(p.match) > Help on built-in function match: > > match(...) > match(string[, pos[, endpos]]) --> match object or None. > Matches zero or more characters at the beginning of the string > > >>> p.match(string="foo") > >

[Python-Dev] Arguments of MatchObject in re module

2009-05-25 Thread MRAB
I've just noticed an oddity of the re module while looking at the sources. I'll illustrate it below: >>> import re >>> p = re.compile("foo") >>> help(p.match) Help on built-in function match: match(...) match(string[, pos[, endpos]]) --> match object or None. Matches zero or more charact