Walking deeply nested lists

Carl Banks pavlovevidence at gmail.com
Sat Aug 28 06:11:59 EDT 2010


On Aug 28, 3:03 am, Peter Otten <__pete... at 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



More information about the Python-list mailing list