Author: Maciej Fijalkowski <[email protected]>
Branch: share-guard-info
Changeset: r79800:0ba17eb0536d
Date: 2015-09-23 20:23 +0200
http://bitbucket.org/pypy/pypy/changeset/0ba17eb0536d/
Log: fix numpy
diff --git a/pypy/module/micronumpy/support.py
b/pypy/module/micronumpy/support.py
--- a/pypy/module/micronumpy/support.py
+++ b/pypy/module/micronumpy/support.py
@@ -32,7 +32,10 @@
def product(s):
i = 1
for x in s:
- i = ovfcheck(i * x)
+ try:
+ i = ovfcheck(i * x)
+ except OverflowError:
+ raise
return i
_______________________________________________
pypy-commit mailing list
[email protected]
https://mail.python.org/mailman/listinfo/pypy-commit