diff Include/pyerrors.h @ 43276:3bc3f12cae28 legacy-trunk

Fix a crasher where Python code managed to infinitely recurse in C code without ever going back out to Python code in PyObject_Call(). Required introducing a static RuntimeError instance so that normalizing an exception there is no reliance on a recursive call that would put the exception system over the recursion check itself.
author Brett Cannon <bcannon@gmail.com>
date Fri, 07 Sep 2007 04:18:30 +0000
parents 37189e375ec7
children b89b0334372b
line wrap: on
line diff
--- a/Include/pyerrors.h	Fri Sep 07 03:17:50 2007 +0000
+++ b/Include/pyerrors.h	Fri Sep 07 04:18:30 2007 +0000
@@ -161,6 +161,7 @@
 #endif
 
 PyAPI_DATA(PyObject *) PyExc_MemoryErrorInst;
+PyAPI_DATA(PyObject *) PyExc_RecursionErrorInst;
 
 /* Predefined warning categories */
 PyAPI_DATA(PyObject *) PyExc_Warning;