Often during recursive programming we hit the maximum set depth for recursive calls. But as usual Python’s flexibility help us in this situation too. In this post we discuss how we can increase the maximum recursive calls a python code segment can make.

To increase recursive calls depth just add the following lines to your code:
import sys
sys.setrecursionlimit(NEW_LIMIT)
Pretty isn’t it?