"ulimit -s" has no effect?

Josiah Carlson jcarlson at nospam.uci.edu
Fri Feb 6 12:11:27 EST 2004


> def foo(i):
>         print i 
>         foo(i+1)
> import sys
> sys.setrecursionlimit(1000000)
> foo(0)

This entire thread begs the question: Why are you recursing this deep?
It would be faster to iterate.

  - Josiah



More information about the Python-list mailing list