RuntimeError: maximum recursion limit exceeded ??
Michael Peuser
mpeuser at web.de
Sun Aug 17 10:18:22 EDT 2003
"Bill Loren" <lorenb2 at bezeqint.net> schrieb im Newsbeitrag
news:mailman.1061127755.14803.python-list at python.org...
> Hi ppl,
>
> Trying to substitute some html tags within a big html file using RE ended
up
> with the "RuntimeError: maximum recursion limit exceeded" message.
> Any idea why that might happen and how should one cope with it ?
>
> thx
> ~B
>
> (btw I'm trying to take off several <a href>s, i.e. substiture them with
the
> empty string '')
"
sys.getrecursionlimit()
Return the current value of the recursion limit, the maximum depth of the
Python interpreter stack. This limit prevents infinite recursion from
causing an overflow of the C stack and crashing Python. It can be set by
setrecursionlimit().
"
You probably encountered some situation where one of youre routines went
wild. It is not probable that you can reach this limit by something like
HTML tag nesting...
Kindly
Michael P
More information about the Python-list
mailing list