[pypy-commit] pypy numpy-multidim-shards: don't copy a list any more - the cause was fixed in 0bdcf803c0fd

fijal noreply at buildbot.pypy.org
Sun Nov 20 17:15:20 CET 2011


Author: Maciej Fijalkowski <fijall at gmail.com>
Branch: numpy-multidim-shards
Changeset: r49585:0fc1ea420599
Date: 2011-11-20 18:14 +0200
http://bitbucket.org/pypy/pypy/changeset/0fc1ea420599/

Log:	don't copy a list any more - the cause was fixed in 0bdcf803c0fd

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
@@ -708,9 +708,7 @@
             r = offset // shard
             indices_w.append(space.wrap(r))
             offset -= shard * r
-        # XXX for reasons unclear indices_w becomes a resizable list, work
-        #     around for now
-        return space.newtuple(indices_w[:])
+        return space.newtuple(indices_w)
 
 def convert_to_array(space, w_obj):
     if isinstance(w_obj, BaseArray):


More information about the pypy-commit mailing list