How to reset Recursive restrictions in python
This article shares with you about how python can reset recursive restrictions. The editor thinks it is very practical, so share it with you as a reference and follow the editor to have a look.
Reset recursive restrictions
Python limits the number of recursions to 1000. We can reset this value:
Import sysx=1001print (sys.getrecursionlimit ()) sys.setrecursionlimit (x) print (sys.getrecursionlimit ()) # 1-> 1000 hours 2-> 1001 Thank you for reading! This is the end of the article on "how to reset recursive restrictions in python". I hope the above content can be of some help to you, so that you can learn more knowledge. if you think the article is good, you can share it for more people to see!