[pypy-commit] pypy missing-ndarray-attributes: fix one translation error
mattip
noreply at buildbot.pypy.org
Fri Jan 18 00:28:49 CET 2013
Author: mattip <matti.picus at gmail.com>
Branch: missing-ndarray-attributes
Changeset: r60159:4061742c9b8f
Date: 2013-01-18 01:16 +0200
http://bitbucket.org/pypy/pypy/changeset/4061742c9b8f/
Log: fix one translation error
diff --git a/pypy/module/micronumpy/interp_flatiter.py b/pypy/module/micronumpy/interp_flatiter.py
--- a/pypy/module/micronumpy/interp_flatiter.py
+++ b/pypy/module/micronumpy/interp_flatiter.py
@@ -9,11 +9,13 @@
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
@@ -25,7 +27,8 @@
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):
More information about the pypy-commit
mailing list