[pypy-svn] r70727 - pypy/trunk/pypy/interpreter

fijal at codespeak.net fijal at codespeak.net
Wed Jan 20 15:01:25 CET 2010


Author: fijal
Date: Wed Jan 20 15:01:25 2010
New Revision: 70727

Modified:
   pypy/trunk/pypy/interpreter/pyframe.py
Log:
reintorduce change that was removed with faster-raise branch, but might help
a bit now (at least does not hurt)


Modified: pypy/trunk/pypy/interpreter/pyframe.py
==============================================================================
--- pypy/trunk/pypy/interpreter/pyframe.py	(original)
+++ pypy/trunk/pypy/interpreter/pyframe.py	Wed Jan 20 15:01:25 2010
@@ -155,6 +155,9 @@
                 executioncontext.return_trace(self, self.space.w_None)
                 raise
             executioncontext.return_trace(self, w_exitvalue)
+            # clean up the exception, might be useful for not
+            # allocating exception objects in some cases
+            self.last_exception = None
         finally:
             executioncontext.leave(self)
         return w_exitvalue



More information about the Pypy-commit mailing list