[pypy-commit] pypy default: rcomplex.c_pow does this
bdkearns
noreply at buildbot.pypy.org
Thu Nov 14 21:21:41 CET 2013
Author: Brian Kearns <bdkearns at gmail.com>
Branch:
Changeset: r68122:1e79df0ae309
Date: 2013-11-14 15:15 -0500
http://bitbucket.org/pypy/pypy/changeset/1e79df0ae309/
Log: rcomplex.c_pow does this
diff --git a/pypy/module/micronumpy/types.py b/pypy/module/micronumpy/types.py
--- a/pypy/module/micronumpy/types.py
+++ b/pypy/module/micronumpy/types.py
@@ -1260,10 +1260,6 @@
@complex_binary_op
def pow(self, v1, v2):
- if v1[1] == 0 and v2[1] == 0 and v1[0] > 0:
- return math.pow(v1[0], v2[0]), 0
- #if not rfloat.isfinite(v1[0]) or not rfloat.isfinite(v1[1]):
- # return rfloat.NAN, rfloat.NAN
try:
return rcomplex.c_pow(v1, v2)
except ZeroDivisionError:
More information about the pypy-commit
mailing list