Author: Philip Jenvey <[email protected]>
Branch: py3k
Changeset: r66158:9d5d630fae26
Date: 2013-08-14 14:29 -0700
http://bitbucket.org/pypy/pypy/changeset/9d5d630fae26/

Log:    readapt 50440c0c0292 to the kill-gen-store-back-in branch changes:
        preserve the exception state between generator yields

diff --git a/pypy/module/pypyjit/interp_jit.py 
b/pypy/module/pypyjit/interp_jit.py
--- a/pypy/module/pypyjit/interp_jit.py
+++ b/pypy/module/pypyjit/interp_jit.py
@@ -78,7 +78,7 @@
                 next_instr = self.handle_bytecode(co_code, next_instr, ec)
                 is_being_profiled = self.is_being_profiled
         except Yield:
-            self.last_exception = None
+            # preserve self.last_exception between generator yields
             w_result = self.popvalue()
             jit.hint(self, force_virtualizable=True)
             return w_result
_______________________________________________
pypy-commit mailing list
[email protected]
http://mail.python.org/mailman/listinfo/pypy-commit

Reply via email to