Regular Expression: maximum recursion limit exceeded
Markus Gritsch
gritsch at iue.tuwien.ac.at
Sat May 25 13:00:59 EDT 2002
Hi!
I think I discovered a limitation of the "new" Regular Expression engine. I
have put together an example which shows the behavior at
http://stud4.tuwien.ac.at/~e9326522/temporary/re_bug_example.zip (69kB)
When the script is run with Python 1.5.2 by invoking
psmergeNS.py *.ps
everything is fine and it produces a merged output file containing both
PostScript files.
When using Python 2.x the following Exception is raised:
Traceback (most recent call last):
File "psmergeNS4.py", line 35, in ?
pages = theRE.findall(contents)
RuntimeError: maximum recursion limit exceeded
This behavior is the same with the Linux and the Win32 version of Python.
Any hints?
Markus
More information about the Python-list
mailing list