[pypy-commit] pypy numpy-dtype-alt: kill this code, translation gets even farther now, I suppose it'll just crash, but that's kind-of-ok

alex_gaynor noreply at buildbot.pypy.org
Fri Aug 19 07:34:37 CEST 2011


Author: Alex Gaynor <alex.gaynor at gmail.com>
Branch: numpy-dtype-alt
Changeset: r46628:2b1df092d851
Date: 2011-08-19 00:38 -0500
http://bitbucket.org/pypy/pypy/changeset/2b1df092d851/

Log:	kill this code, translation gets even farther now, I suppose it'll
	just crash, but that's kind-of-ok

diff --git a/pypy/module/micronumpy/interp_dtype.py b/pypy/module/micronumpy/interp_dtype.py
--- a/pypy/module/micronumpy/interp_dtype.py
+++ b/pypy/module/micronumpy/interp_dtype.py
@@ -100,16 +100,6 @@
         def str_format(self, item):
             return str(self.unbox(item))
 
-        def _unimplemented_binop(self, v1, v2):
-            self.unbox(v1)
-            self.unbox(v2)
-            raise NotImplementedError
-        def _unimplemented_unaryop(self, v):
-            self.unbox(v)
-            raise NotImplementedError
-        add = sub = mul = dev = mod = pow = max = min = copysign = ne = _unimplemented_binop
-        pos = neg = abs = sign = reciprocal = fabs = floor = exp = sin = cos = tan = arcsin = arccos = arctan = bool = _unimplemented_unaryop
-
     W_LowLevelDtype.__name__ = "W_%sDtype" % name.capitalize()
     W_LowLevelDtype.num = num
     W_LowLevelDtype.kind = kind


More information about the pypy-commit mailing list