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