Request for Python 1.6 or higher: catch infinite recursion before Windows does!

Fredrik Lundh effbot at telia.com
Mon Mar 27 16:53:51 EST 2000


Warren Postma <embed at geocities.com> wrote:
> Result on Windows:
>
> Presumably this recurses a few hundred (thousand?) levels deep, then blows
> up.
>
> The exception uknown software exception (0xc0000000fd) occurred int he
> application at location 0x77fc9811.
>
> If you go into the debugger, you can learn that it's a stack overflow
error
> in ntdll.dll
>
> Is it possible for Python to put some kind of hard limit on recursion on
> Windows, to catch Infinite recursions at some sane point that is always
> before Windows does!?

obviously -- this is fixed in 1.5.2+ (the current
CVS version, at least when built with MSVC 5.0)

</F>





More information about the Python-list mailing list