sre vs. re (was Re: crimes in Python)
effbot at telia.com
Thu Mar 9 20:45:25 CET 2000
Aahz Maruch <aahz at netcom.com> wrote:
> Will sre be method-for-method compatible with re?
it won't be renamed from 'sre' to 're' before it is.
however, pattern and match objects are C types,
and cannot be subclassed. and we'll only support
the public interface (as described in the library ref).
code abusing the 're' module internals won't work.
(the goal is to have one regular expression engine
in 1.6, not three. most of the 'regex' api will still be
supported, but that will also be implemented on top
of the 'sre' engine)
More information about the Python-list