• notice
  • Congratulations on the launch of the Sought Tech site

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.


Tags

Technical otaku

Sought technology together

Related Topic

0 Comments

Leave a Reply

+