Py 1.5.2 -> Py 2.1.1 broke regular expression?

Stefan Schwarzer s.schwarzer at ndh.net
Sun Aug 12 07:12:22 EDT 2001


Hello John

"John W. Baxter" schrieb:
> 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.
> 
> I think Stefan has found an instance of "some patterns".
> 
> I suppose the first thing to try would be to import and use pre rather
> than re .

In fact, with
  import pre as re
it seems to work :-)

Thank you, John.

Stefan



More information about the Python-list mailing list