[Tutor] maximum recursion depth exceeded !

Wolfram Kraus kraus at hagen-partner.de
Thu Jul 7 12:55:48 CEST 2005


Mohammad Moghimi wrote:
> Hi there
> I wrote a recursive function a got this error how can I increase 
> maximum recursion depth. And what is its default value?
> -- Mohammad
> do you Python?!!

Start your python interpreter and:

 >>> import sys
 >>> sys.getrecursionlimit()
1000
 >>> help(sys.setrecursionlimit)

HTH,
Wolfram



More information about the Tutor mailing list