Author: Matti Picus <[email protected]>
Branch: boolean-indexing-cleanup
Changeset: r66972:f546fe80657f
Date: 2013-09-16 20:02 +0300
http://bitbucket.org/pypy/pypy/changeset/f546fe80657f/

Log:    build iter according to arr's shape

diff --git a/pypy/module/micronumpy/loop.py b/pypy/module/micronumpy/loop.py
--- a/pypy/module/micronumpy/loop.py
+++ b/pypy/module/micronumpy/loop.py
@@ -375,7 +375,7 @@
 def setitem_filter(arr, index, value):
     arr_iter = arr.create_iter()
     index_iter = index.create_iter(arr.get_shape())
-    value_iter = value.create_iter()
+    value_iter = value.create_iter(arr.get_shape())
     shapelen = len(arr.get_shape())
     index_dtype = index.get_dtype()
     arr_dtype = arr.get_dtype()
_______________________________________________
pypy-commit mailing list
[email protected]
https://mail.python.org/mailman/listinfo/pypy-commit

Reply via email to