Author: mattip <[email protected]>
Branch: ndarray-setitem-filtered
Changeset: r82468:cae31623079d
Date: 2016-02-24 08:29 +0100
http://bitbucket.org/pypy/pypy/changeset/cae31623079d/
Log: WIP - add comment where the problem occurs
diff --git a/pypy/module/micronumpy/strides.py
b/pypy/module/micronumpy/strides.py
--- a/pypy/module/micronumpy/strides.py
+++ b/pypy/module/micronumpy/strides.py
@@ -97,6 +97,7 @@
# filter by axis dim
filtr = chunks[dim]
assert isinstance(filtr, BooleanChunk)
+ # XXX this creates a new array, and fails in setitem
w_arr = w_arr.getitem_filter(space, filtr.w_idx, axis=dim)
arr = w_arr.implementation
chunks[dim] = SliceChunk(space.newslice(space.wrap(0),
_______________________________________________
pypy-commit mailing list
[email protected]
https://mail.python.org/mailman/listinfo/pypy-commit