How to solve RecursionError without sys.setrecursionlimit() in python

230 Views Asked by At

I have implemented recursive functions that work on big database and it raises

RecursionError: maximum recursion depth exceeded while calling a Python object

To solve it I added sys.setrecursionlimit(10 ** 4) at the beginning of my code. But now, when I run my program, it crashes with the message :

Process finished with exit code -1073741571 (0xC00000FD)

What is this error and how do I solve it? Or is there an other way to avoid Recursion Errors?

0

There are 0 best solutions below