Author: mattip
Branch: numppy-flatitter
Changeset: r51504:47faffcb9ec3
Date: 2012-01-19 21:30 +0200
http://bitbucket.org/pypy/pypy/changeset/47faffcb9ec3/

Log:    use the parent iterator

diff --git a/pypy/module/micronumpy/interp_numarray.py 
b/pypy/module/micronumpy/interp_numarray.py
--- a/pypy/module/micronumpy/interp_numarray.py
+++ b/pypy/module/micronumpy/interp_numarray.py
@@ -1308,8 +1308,10 @@
         ViewArray.__init__(self, size, [size], arr.dtype, order=arr.order,
                                parent=arr)
         self.shapelen = len(arr.shape)
-        self.iter = OneDimIterator(arr.start, self.strides[0],
-                                   self.shape[0])
+        sig = arr.find_sig()
+        #self.iter = OneDimIterator(arr.start, self.strides[0],
+        #                           self.shape[0])
+        self.iter = sig.create_frame(arr).get_final_iter()
         self.start = arr.start
         self.base = arr
 
_______________________________________________
pypy-commit mailing list
pypy-commit@python.org
http://mail.python.org/mailman/listinfo/pypy-commit

Reply via email to