[Python-Dev] Preventing recursion core dumps

Vladimir Marangozov Vladimir.Marangozov@inrialpes.fr
Fri, 11 Aug 2000 14:39:36 +0200 (CEST)


Guido van Rossum wrote:
> 
> It seems better to tune the generic check than to special-case str,
> repr, and getattr.

Right. This would be a step forward, at least for recursive Python code
(which is the most common complaint).  Reducing the current value
by half, i.e. setting MAX_RECURSION_DEPTH = 5000 works for me (Linux & AIX)

Agreement on 5000?

Doesn't solve the problem for C code (extensions) though...

-- 
       Vladimir MARANGOZOV          | Vladimir.Marangozov@inrialpes.fr
http://sirac.inrialpes.fr/~marangoz | tel:(+33-4)76615277 fax:76615252