Author: Matti Picus <[email protected]>
Branch: 
Changeset: r66988:5df0779e41d1
Date: 2013-09-17 10:02 +0300
http://bitbucket.org/pypy/pypy/changeset/5df0779e41d1/

Log:    indexing with boolean does not broadcast over all of array

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
@@ -95,7 +95,7 @@
         if idx.get_size() > self.get_size():
             raise OperationError(space.w_ValueError,
                                  space.wrap("index out of range for array"))
-        idx_iter = idx.create_iter(self.get_shape())
+        idx_iter = idx.create_iter()
         size = loop.count_all_true_iter(idx_iter, self.get_shape(), 
idx.get_dtype())
         if size > val.get_size() and val.get_size() > 1:
             raise OperationError(space.w_ValueError, space.wrap("NumPy boolean 
array indexing assignment "
_______________________________________________
pypy-commit mailing list
[email protected]
https://mail.python.org/mailman/listinfo/pypy-commit

Reply via email to