[pypy-svn] r53548 - pypy/branch/jit-hotpath/pypy/interpreter

fijal at codespeak.net fijal at codespeak.net
Mon Apr 7 23:44:56 CEST 2008


Author: fijal
Date: Mon Apr  7 23:44:54 2008
New Revision: 53548

Modified:
   pypy/branch/jit-hotpath/pypy/interpreter/pyopcode.py
Log:
Don't try to handle NotImplementedError here


Modified: pypy/branch/jit-hotpath/pypy/interpreter/pyopcode.py
==============================================================================
--- pypy/branch/jit-hotpath/pypy/interpreter/pyopcode.py	(original)
+++ pypy/branch/jit-hotpath/pypy/interpreter/pyopcode.py	Mon Apr  7 23:44:54 2008
@@ -98,6 +98,10 @@
         except MemoryError:
             next_instr = self.handle_asynchronous_error(ec,
                 self.space.w_MemoryError)
+        except NotImplementedError, e:
+            # this one is a subclass of RuntimeError, but this only
+            # obscures reports (ie we got stack overflow instead of crash)
+            raise
         except RuntimeError, e:
             if we_are_translated():
                 # stack overflows should be the only kind of RuntimeErrors



More information about the Pypy-commit mailing list