2.1.1 and regexp

Dave Pawson DaveP at dpawson.freeserve.co.uk
Tue Dec 4 00:38:44 EST 2001


"Fredrik Lundh" <fredrik at pythonware.com> wrote in news:ThUO7.736$l93.296168
@newsb.telia.net:

> Dave Pawson wrote:
>> Can anyone straighten me out on
>> the history / future of regexp in python please.
>> Present (2.1.1) documentation implies that re will be
>> replaced by sre.
>> http://www.python.org/doc/current/lib/module-re.html
> 
> no, it says that the "pre" engine may go away.
> 
> user code should use "re", unless they have a good reason
> for not doing so.

Now I'm even more confused :-)

Trying to use the xpath part of 4suite,
which uses re.compile.
A new installation, 2.1.1 with xml 0.66 
and 4suite 0.11.1, gives me an error

compile is not an attribute of re.
This works with 2.1, same versions of xml and 4suite.

Any further enlightenment please Fredrik?
I thought I was caught in a mid-change gap.

Regards DaveP




More information about the Python-list mailing list