Wednesday, August 23, 2017

recursion in python


limits on the maximum depth of recursion

RecursionError: maximum recursion depth exceeded

https://stackoverflow.com/questions/3323001/what-is-the-maximum-recursion-depth-in-python-and-how-to-increase-it


sys.setrecursionlimit(new_limit_value)

No comments:

Post a Comment

comment: