How to implement reset recursion limits in python
reset recursion limit
Python limits the number of recursion to 1000, we can reset this value:
import sys x= 1001 print(sys.getrecursionlimit()) sys.setrecursionlimit(x) print(sys.getrecursionlimit()) #1->1000 #2->1001
Thanks for reading! The article on "How to reset the recursion limit in python" is shared here.
0 Comments