1. Pypy
  2. Untitled project
  3. pypy

Commits

Brian Kearns  committed aba89d1

simplify

  • Participants
  • Parent commits f2b222d
  • Branches default

Comments (0)

Files changed (1)

File pypy/module/micronumpy/nditer.py

View file
  • Ignore whitespace
                                             shape_agreement, shape_agreement_multiple)
 
 
-class AbstractIterator(object):
-    def done(self):
-        raise NotImplementedError("Abstract Class")
-
-    def next(self):
-        raise NotImplementedError("Abstract Class")
-
-    def getitem(self, space, array):
-        raise NotImplementedError("Abstract Class")
-
-
-class IteratorMixin(object):
-    _mixin_ = True
-
+class BaseIterator(object):
     def __init__(self, nditer, it, op_flags):
         self.nditer = nditer
         self.it = it
         xxx
 
 
-class BoxIterator(IteratorMixin, AbstractIterator):
+class BoxIterator(BaseIterator):
     index = 0
 
 
-class ExternalLoopIterator(IteratorMixin, AbstractIterator):
+class ExternalLoopIterator(BaseIterator):
     index = 1