Why it does NOT work on Linux ?

Fredrik Lundh fredrik at pythonware.com
Fri Feb 8 03:04:26 EST 2002

Steve Holden wrote:

> > Ladislav's use of findall works, but this feature of re.findall()
> > is not documented and should be avoided, as undocumented features
> > have been known to disappear.
> Nonsense. The function interface continues to be a fully-documented part of
> the re module.

that's not what Jason was talking about:  he pointed out that the
original code passed a compiled pattern object, not a string, as the
first argument to re.findall.

> You are apparently confusing
>     http://www.python.org/doc/current/lib/node99.html
> (the re module contents description, which describes the functional
> interface to regular expressions) with
>     http://www.python.org/doc/current/lib/re-objects.html
> (the method descriptions for re objects). It may not be the way *you* do it,
> but that doesn't mean it's not documented <wink>.

where does the documentation say that the "pattern" argument to
re.findall can be either a string or a compiled pattern?


More information about the Python-list mailing list