[pypy-commit] pypy numppy-flatitter: translation passes

mattip noreply at buildbot.pypy.org
Wed Jan 25 21:50:07 CET 2012


Author: mattip
Branch: numppy-flatitter
Changeset: r51770:35b17e8dce50
Date: 2012-01-25 22:49 +0200
http://bitbucket.org/pypy/pypy/changeset/35b17e8dce50/

Log:	translation passes

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
@@ -1438,8 +1438,7 @@
     if i != 0:
         raise OperationError(space.w_IndexError, space.wrap("invalid index"))
 
-    retval = [coords, start, step, lngth]
-    return retval
+    return coords, start, step, lngth
 
 
 class W_FlatIterator(ViewArray):
@@ -1469,7 +1468,7 @@
         return space.wrap(self.index)
 
     def descr_coords(self, space):
-        coords = _to_coords(space, self.base, space.wrap(self.index))[0]
+        coords, start, step, lngth = _to_coords(space, self.base, space.wrap(self.index))
         return space.newtuple([space.wrap(c) for c in coords])
 
     def descr_getitem(self, space, w_idx):


More information about the pypy-commit mailing list