[Tutor] maximum recursion depth exceeded !

Alan G alan.gauld at freenet.co.uk
Thu Jul 7 22:52:43 CEST 2005

> 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
Or has it always been there and I've just never noticed?
Looks like a good candidate for use inside an exception handler...

Alan G.

More information about the Tutor mailing list