Author: Brian Kearns <[email protected]>
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:
_______________________________________________
pypy-commit mailing list
[email protected]
https://mail.python.org/mailman/listinfo/pypy-commit

Reply via email to