Author: Alex Gaynor <[email protected]>
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)
_______________________________________________
pypy-commit mailing list
[email protected]
http://mail.python.org/mailman/listinfo/pypy-commit