[pypy-svn] r28516 - pypy/dist/pypy/interpreter

mwh at codespeak.net mwh at codespeak.net
Thu Jun 8 15:28:13 CEST 2006


Author: mwh
Date: Thu Jun  8 15:28:12 2006
New Revision: 28516

Modified:
   pypy/dist/pypy/interpreter/pyframe.py
Log:
(mwh, pedronis)
dispatch_translated always exits via an exception, so put the resume_point just
after it inside a finally clause 


Modified: pypy/dist/pypy/interpreter/pyframe.py
==============================================================================
--- pypy/dist/pypy/interpreter/pyframe.py	(original)
+++ pypy/dist/pypy/interpreter/pyframe.py	Thu Jun  8 15:28:12 2006
@@ -198,8 +198,10 @@
                     try:
                         try:
                             if we_are_translated():
-                                self.dispatch_translated(executioncontext)
-                                rstack.resume_point("eval", self)
+                                try:
+                                    self.dispatch_translated(executioncontext)
+                                finally:
+                                    rstack.resume_point("eval", self)
                             else:
                                 self.dispatch(executioncontext)
                         # catch asynchronous exceptions and turn them



More information about the Pypy-commit mailing list