projects
/
platform
/
upstream
/
python-cython.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e501c41
)
fix compilation and exception conversion when using 'except +'
author
Stefan Behnel
<stefan_ml@behnel.de>
Sun, 8 Jul 2012 19:21:19 +0000
(21:21 +0200)
committer
Stefan Behnel
<stefan_ml@behnel.de>
Sun, 8 Jul 2012 19:21:19 +0000
(21:21 +0200)
Cython/Compiler/ExprNodes.py
patch
|
blob
|
history
diff --git
a/Cython/Compiler/ExprNodes.py
b/Cython/Compiler/ExprNodes.py
index
bc242e0
..
9b94e1e
100755
(executable)
--- a/
Cython/Compiler/ExprNodes.py
+++ b/
Cython/Compiler/ExprNodes.py
@@
-9873,6
+9873,11
@@
bad:
cpp_exception_utility_code = UtilityCode(
proto = """
#ifndef __Pyx_CppExn2PyErr
+#include <new>
+#include <typeinfo>
+#include <stdexcept>
+#include <iostream>
+
static void __Pyx_CppExn2PyErr() {
// Catch a handful of different errors here and turn them into the
// equivalent Python errors.
@@
-9911,9
+9916,7
@@
static void __Pyx_CppExn2PyErr() {
}
}
#endif
-""",
-impl = ""
-)
+""")
pyerr_occurred_withgil_utility_code= UtilityCode(
proto = """