Re: [Python-Dev] Limiting the recursion limit

2006-01-11 Thread Guido van Rossum
On 1/11/06, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > > >>> sys.setrecursionlimit(1<<30) > >>> f = lambda f:f(f) > >>> f(f) > Segmentation fault > > Is there some way that Python can determine that 1<<30 is an unreasonable > recursion limit? Yes, but that doesn't help -- there

[Python-Dev] Limiting the recursion limit

2006-01-11 Thread skip
>>> sys.setrecursionlimit(1<<30) >>> f = lambda f:f(f) >>> f(f) Segmentation fault Is there some way that Python can determine that 1<<30 is an unreasonable recursion limit? Skip ___ Python-Dev mailing list [email protected] http://