[pypy-commit] pypy numpy-dtype-alt: Idea from gutworth on translation, didn't help.
alex_gaynor
noreply at buildbot.pypy.org
Fri Aug 19 05:18:03 CEST 2011
Author: Alex Gaynor <alex.gaynor at gmail.com>
Branch: numpy-dtype-alt
Changeset: r46626:b9c198aa1d99
Date: 2011-08-18 22:22 -0500
http://bitbucket.org/pypy/pypy/changeset/b9c198aa1d99/
Log: Idea from gutworth on translation, didn't help.
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
@@ -99,6 +99,16 @@
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