[Python-Dev] New regex module for 3.2?

Steven D'Aprano steve at pearwood.info
Mon Jul 12 01:42:40 CEST 2010


On Sun, 11 Jul 2010 09:37:22 pm Eric Smith wrote:
> > re2 comparison is interesting from the point of if it should be
> > included in stdlib.
>
> Is "it" re2 or regex? I don't see having 2 regular expression engines
> in the stdlib.

There's precedence though... the old regex engine and the new re engine 
were side-by-side for many years before regex was deprecated and 
finally removed in 2.5. Hypothetically, re2 could similarly be added to 
the standard library while re is deprecated.


-- 
Steven D'Aprano


More information about the Python-Dev mailing list