Author: Maciej Fijalkowski <[email protected]>
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):
_______________________________________________
pypy-commit mailing list
[email protected]
http://mail.python.org/mailman/listinfo/pypy-commit

Reply via email to