February 2006
Intermediate to advanced
648 pages
14h 53m
English
Python places a limit on the depth of recursive function calls. The function sys.getrecursionlimit() returns the current maximum recursion depth, and the function sys.setrecursionlimit() can be used to change the value. The default value is 1000. When the recursion depth is exceeded, a RuntimeError exception is raised.