Source

pypy / pypy / module / micronumpy / arrayimpl / base.py

Full commit

class BaseArrayImplementation(object):
    def is_scalar(self):
        return False

class BaseArrayIterator(object):
    def next(self):
        raise NotImplementedError # purely abstract base class

    def setitem(self, elem):
        raise NotImplementedError

    def set_scalar_object(self, value):
        raise NotImplementedError # works only on scalars