[Tutor] maximum recursion depth exceeded !

Wolfram Kraus kraus at hagen-partner.de
Fri Jul 8 08:35:43 CEST 2005

Alan G wrote:
>> Start your python interpreter and:
>>>>> import sys sys.getrecursionlimit()
>> 1000
>>>>> help(sys.setrecursionlimit)
> Ooh, that's nice. When did the ability to tweak it programmatically 
> appear? Or has it always been there and I've just never noticed?

It isn't in the 1.5.2 documentation but in the 2.0 documentation, so
it has been there for some time ;-)

> Looks like a good candidate for use inside an exception handler...
> Alan G.

More information about the Tutor mailing list