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