Python 1.5.2->2.0 documented incompat.?

Daniel Hops daniel.hops at eed.ericsson.se
Sun Oct 22 09:27:47 EDT 2000


Fredrik Lundh wrote:

> quoting the documentation:
>
>     Implementation note: The re module has two distinct
>     implementations: sre is the default implementation and
>     includes Unicode support, but may run into stack limitations
>     for some patterns. Though this will be fixed for a future
>     release of Python, the older implementation (without
>     Unicode support) is still available as the pre module.
>
> to use pre in a single script, just replace "import re" with
> "import pre as re"

You are right. This last sentence has been overlooked by me.
Using pre helps.

/Daniel




More information about the Python-list mailing list