[pypy-commit] pypy numpy-multidim-shards: a fix and a comment

fijal noreply at buildbot.pypy.org
Sun Nov 20 16:02:06 CET 2011


Author: Maciej Fijalkowski <fijall at gmail.com>
Branch: numpy-multidim-shards
Changeset: r49578:b553f019a2df
Date: 2011-11-20 17:01 +0200
http://bitbucket.org/pypy/pypy/changeset/b553f019a2df/

Log:	a fix and a comment

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