Commits

mattip committed 4061742

fix one translation error

  • Participants
  • Parent commits dff76a3
  • Branches missing-ndarray-attributes

Comments (0)

Files changed (1)

File pypy/module/micronumpy/interp_flatiter.py

     like a real array for descr_eq and friends
     """
     def __init__(self, base):
-        assert isinstance(base, W_NDimArray)
-        self.base = base
+        self._base = base
         self.dtype = base.get_dtype()
         self.shape = [base.get_size()]
 
+    def base(self):
+        return self._base
+
     def get_shape(self):
         return self.shape
 
     def __init__(self, arr):
         self.base = arr
         # this is needed to support W_NDimArray interface
-        self.implementation = FakeArrayImplementation(self.base)
+        imp = FakeArrayImplementation(self.base)
+        self.implementation = imp
         self.reset()
 
     def reset(self):