Walking deeply nested lists

Peter Otten __peter__ at web.de
Sat Aug 28 12:03:09 CEST 2010


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.

Peter



More information about the Python-list mailing list