[pypy-svn] r73100 - pypy/branch/stackovf/pypy/translator/c/src
arigo at codespeak.net
arigo at codespeak.net
Mon Mar 29 18:24:42 CEST 2010
Author: arigo
Date: Mon Mar 29 18:24:40 2010
New Revision: 73100
Modified:
pypy/branch/stackovf/pypy/translator/c/src/exception.h
Log:
Convert StackOverflows to PyExc_RuntimeError.
Modified: pypy/branch/stackovf/pypy/translator/c/src/exception.h
==============================================================================
--- pypy/branch/stackovf/pypy/translator/c/src/exception.h (original)
+++ pypy/branch/stackovf/pypy/translator/c/src/exception.h Mon Mar 29 18:24:40 2010
@@ -104,6 +104,9 @@
/* workaround against the py lib's BuiltinAssertionError */
pycls = PyExc_AssertionError;
}
+ else if (strcmp(clsname, "StackOverflow") == 0) {
+ pycls = PyExc_RuntimeError;
+ }
else {
pycls = PyDict_GetItemString(PyEval_GetBuiltins(), clsname);
if (pycls == NULL || !PyExceptionClass_Check(pycls) ||
More information about the Pypy-commit
mailing list