[Python-Dev] New regex module for 3.2?

Nick Coghlan ncoghlan at gmail.com
Fri Jul 9 00:13:01 CEST 2010


On Fri, Jul 9, 2010 at 7:54 AM, MRAB <python at mrabarnett.plus.com> wrote:
> You should be able to replace:
>
>    import re
>
> with:
>
>    import regex as re
>
> and still have everything work the same, ie it's backwards compatible
> with re.

That's not what I'm asking. I'm asking what happens if you take an
existing Python installation's re module, move it aside, and drop
regex in its place as "re.py".

Doing that and then running Python's own test suite as well as the
test suites of major Python applications and frameworks like Twisted,
Zope and Django would provide solid evidence that the new version
really *is* backwards compatible, rather than that it is *meant* to be
backwards compatible.

Cheers,
Nick.

-- 
Nick Coghlan   |   ncoghlan at gmail.com   |   Brisbane, Australia


More information about the Python-Dev mailing list