> Python 2.0:
> When I use regular expression with rather big file (150,000 byte), I
> get error: "RuntimeError: maximum recursion limit exceeded"
>
> But on Pytnon 1.52 in the same situation it's OK.
Maybe you are using non-greedy regexps - i. e. something like 'a*?'. It is a
known bug that they cause the above RuntimeError when the match exceeds
about 16k. You might want to use the old python 1.52 regexps:

#import re  # comment out this line - new regexp (implicitly loads "sre" I
think)
import pre  # the python 1.5 implementation of regexp

re = pre # Avoids the need of changing existing code

Gruß
  Markus


_______________________________________________
ActivePython mailing list
[EMAIL PROTECTED]
http://listserv.ActiveState.com/mailman/listinfo/activepython
  • ... Карпов Денис Сергеевич
    • ... Phil Harris
    • ... Phil Harris
      • ... Christian Tismer
    • ... Trent Mick
    • ... Houman G
    • ... Markus Schönhaber
    • ... Trent Mick
    • ... Markus Schönhaber
    • ... David Niergarth

Reply via email to