Author: Ronan Lamy <ronan.l...@gmail.com> Branch: object-dtype2 Changeset: r76799:275a1cc62537 Date: 2015-04-15 23:54 +0100 http://bitbucket.org/pypy/pypy/changeset/275a1cc62537/
Log: kill stupid hack 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 @@ -112,13 +112,12 @@ return dispatcher class BaseType(object): - _immutable_fields_ = ['native', 'space', 'T'] + _immutable_fields_ = ['native', 'space'] def __init__(self, space, native=True): assert isinstance(space, ObjSpace) self.native = native self.space = space - self.T = self.T def __repr__(self): return self.__class__.__name__ @@ -1746,7 +1745,7 @@ def _obool(self, v): if self.space.is_true(v): - return True + return True return False @simple_binary_op @@ -1837,14 +1836,14 @@ def add_attributeerr_op(cls, op): def func(self, *args): - raise oefmt(self.space.w_AttributeError, + raise oefmt(self.space.w_AttributeError, "%s", op) func.__name__ = 'object_' + op setattr(cls, op, func) - + def add_unsupported_op(cls, op): def func(self, *args): - raise oefmt(self.space.w_TypeError, + raise oefmt(self.space.w_TypeError, "ufunc '%s' not supported for input types", op) func.__name__ = 'object_' + op setattr(cls, op, func) _______________________________________________ pypy-commit mailing list pypy-commit@python.org https://mail.python.org/mailman/listinfo/pypy-commit