June 2001
Intermediate to advanced
416 pages
10h 24m
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.
Read now
Unlock full access