summaryrefslogtreecommitdiff
path: root/numpy/core/setup_common.py
diff options
context:
space:
mode:
authorAllan Haldane <allan.haldane@gmail.com>2015-07-27 21:22:03 -0400
committerAllan Haldane <allan.haldane@gmail.com>2016-09-24 17:32:29 -0400
commitde84ba263abc8472f37aa8e08a26da84cdbd0d2a (patch)
treec99b9ba34c13c09ecc91c81aaf6d381704f69fd4 /numpy/core/setup_common.py
parente1ad72da79a97b0f2209d47d3f7c514ddcb0e8de (diff)
downloadnumpy-de84ba263abc8472f37aa8e08a26da84cdbd0d2a.tar.gz
MAINT: Add deprecation warning to multi-field views/assignment
Behavior of multi-field indexes will change in 1.13: Multi-field indexes will return a view (not a copy) and assignment between structures with non-identical fieldnames occurs "by position" (not "by fieldname"): >>> a = zeros(10, dtype=[('x', 'i8'), ('y', 'i8'), ('z', 'i8')]) >>> a[['x', 'z']].view('i4') # Deprecation warning for multifield view >>> b = ones(10, dtype=[('y', 'i4'), ('x', 'f4')]) >>> a[:] = b # Deprecation warning for multifield assignment
Diffstat (limited to 'numpy/core/setup_common.py')
0 files changed, 0 insertions, 0 deletions