projects
/
cython.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
785caee
)
one more common exception silenced during constant folding
author
Stefan Behnel
<scoder@users.berlios.de>
Sun, 14 Dec 2008 12:48:53 +0000
(13:48 +0100)
committer
Stefan Behnel
<scoder@users.berlios.de>
Sun, 14 Dec 2008 12:48:53 +0000
(13:48 +0100)
Cython/Compiler/Optimize.py
patch
|
blob
|
history
diff --git
a/Cython/Compiler/Optimize.py
b/Cython/Compiler/Optimize.py
index 703f1074e7f8cdd63d422ba6dbf5c54f8141a155..a58fb327b314a129c6bb27e76aa658c60db151dd 100644
(file)
--- a/
Cython/Compiler/Optimize.py
+++ b/
Cython/Compiler/Optimize.py
@@
-415,7
+415,7
@@
class ConstantFolding(Visitor.VisitorTransform, SkipDeclarations):
node.calculate_constant_result()
# if node.constant_result is not ExprNodes.not_a_constant:
# print node.__class__.__name__, node.constant_result
- except (ValueError, TypeError, IndexError, AttributeError):
+ except (ValueError, TypeError,
KeyError,
IndexError, AttributeError):
# ignore all 'normal' errors here => no constant result
pass
except Exception: