limit recursion depth python code example
Example 1: increase limit of recusrion python
import sys
sys.setrecursionlimit(4000)
Example 2: recursionerror maximum recursion depth
sys.setrecursionlimit(1500)
import sys
sys.setrecursionlimit(4000)
sys.setrecursionlimit(1500)