import sys sys.tracebacklimit = 0 def f(x): return f(x-1) if x else 0/0 f(5)