[pypy-commit] pypy speedup-list-comprehension: let async exceptions propogate

alex_gaynor noreply at buildbot.pypy.org
Sat Feb 25 03:16:50 CET 2012


Author: Alex Gaynor <alex.gaynor at gmail.com>
Branch: speedup-list-comprehension
Changeset: r52896:0838a21b4528
Date: 2012-02-24 21:16 -0500
http://bitbucket.org/pypy/pypy/changeset/0838a21b4528/

Log:	let async exceptions propogate

diff --git a/pypy/interpreter/pyopcode.py b/pypy/interpreter/pyopcode.py
--- a/pypy/interpreter/pyopcode.py
+++ b/pypy/interpreter/pyopcode.py
@@ -719,7 +719,9 @@
         last_val = self.popvalue()
         try:
             lgt = self.space.int_w(self.space.len(last_val))
-        except OperationError:
+        except OperationError, e:
+            if e.async(space):
+                raise
             lgt = 0 # oh well
         self.pushvalue(self.space.newlist([], sizehint=lgt))
         self.pushvalue(last_val)


More information about the pypy-commit mailing list