add a warning for unraisable exceptions (but do not show it by default, as this is...
authorStefan Behnel <scoder@users.berlios.de>
Thu, 7 Aug 2008 18:16:39 +0000 (20:16 +0200)
committerStefan Behnel <scoder@users.berlios.de>
Thu, 7 Aug 2008 18:16:39 +0000 (20:16 +0200)
Cython/Compiler/Nodes.py

index d06324c9115c6086a2cd8dcf14daf7b0201be973..98dc1de609c851130ce8cbb146d4832abdeae142 100644 (file)
@@ -944,6 +944,8 @@ class FuncDefNode(StatNode, BlockNode):
             if err_val is not None or exc_check:
                 code.putln('__Pyx_AddTraceback("%s");' % self.entry.qualified_name)
             else:
+                warning(self.entry.pos, "Unraisable exception in function '%s'." \
+                            % self.entry.qualified_name, 0)
                 code.putln(
                     '__Pyx_WriteUnraisable("%s");' % 
                         self.entry.qualified_name)