Get the App
SLTechnology News&Howtos  ›  Network Security  › 

How to reset Recursive restrictions in python

Shulou Source: shulou.com Published: 2022-05-31 16:55:47 10月03日 Update

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!

Tags: Recursion restrictions content more articles good practical articles times look knowledge reference help related Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno vpn Redmi macOS NVidia Xiaomi