I have this tail recursive function here:
def recursive_function(n, sum): if n < 1: return sum else: return recursive_function(n-1
Looks like you just need to set a higher recursion depth:
import sys sys.setrecursionlimit(1500)