recursionerror massima profondità di ricorsione
sys.setrecursionlimit(1500)
RecursionError: profondità massima di ricorsione superata durante la chiamata di un oggetto Python
""" 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)