Author: Romain Guillebert <romain...@gmail.com> Branch: object-dtype Changeset: r75566:155d70548c64 Date: 2015-01-28 17:25 +0100 http://bitbucket.org/pypy/pypy/changeset/155d70548c64/
Log: Don't inherit Primitive 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 @@ -1625,7 +1625,7 @@ _all_objs_for_tests = [] # for tests -class ObjectType(Primitive, BaseType): +class ObjectType(BaseType): T = lltype.Signed BoxType = boxes.W_ObjectBox @@ -1660,6 +1660,11 @@ w_obj = _all_objs_for_tests[res] return w_obj + def fill(self, storage, width, box, start, stop, offset): + value = self.unbox(box) + for i in xrange(start, stop, width): + self._write(storage, i, offset, value) + def unbox(self, box): assert isinstance(box, self.BoxType) return box.w_obj _______________________________________________ pypy-commit mailing list pypy-commit@python.org https://mail.python.org/mailman/listinfo/pypy-commit