Supply

Hello there people. On this submit I’m going to show you the right way to enhance the recursion depth in python. Most of us at a while get this error:

RuntimeError: most recursion depth exceeded

If you wish to repair this error simply enhance the default recursion depth restrict however the right way to do it? Simply import the sys module in your script and to start with of the script kind this:

sys.setrecursionlimit(1500)

This may enhance the default restrict to 1500. For the file, the default restrict is 1000. I hope that you just discovered this submit helpful. Do share this on fb and twitter and keep tuned for my subsequent submit. ❤️ 👋