On Aug 28, 3:03 am, Peter Otten <__pete...@web.de> wrote: > donn wrote: > > On 28/08/2010 08:43, Peter Otten wrote: > >> If you call functions within functions (or methods, it doesn't matter) > >> they consume stack space > > > Right, got it. Darn, but at least there's that setrecursionlimit call. > > But be warned that if you set the limit too high instead of giving you a > RuntimeError your program will segfault.
Ah, an advantage of iteration I forgot: no recursion limits or stack overflows. Carl Banks -- http://mail.python.org/mailman/listinfo/python-list