maximum recursion depth exceeded
romberg at smaug.fsl.noaa.gov
Tue Mar 4 19:52:36 CET 2003
I'm attempting to try and gracefully handle situations where
infinite recursion can occur in scripts supplied to our system by our
users. To do this I've tried the following:
eval("Some code which might recurse")
# Handle error
When I supply a string which causes infinite recursion, I see these
messages on the console:
Exception exceptions.RuntimeError: 'maximum recursion depth exceeded'
But I can't seem to catch the exceptions. Is there something
special about this exception? Or am I just missing something obvious
(which I have been know to do from time to time).
Mike Romberg (romberg at fsl.noaa.gov)
More information about the Python-list