Answers for "recursionerror maximum recursion depth"

2

recursionerror maximum recursion depth

sys.setrecursionlimit(1500)
Posted by: Guest on December-24-2020
1

RecursionError: maximum recursion depth exceeded while calling a Python object

""" The program had called a function repeatedly and hasn't came to an end. """

""" What not to do: """
def test(i):
  if i == 1:
    return 1
  else:
    return test(i + 1)
Posted by: Guest on December-04-2020

Code answers related to "recursionerror maximum recursion depth"

Python Answers by Framework

Browse Popular Code Answers by Language