diff options
author | Allan Haldane <allan.haldane@gmail.com> | 2015-06-06 11:22:38 -0400 |
---|---|---|
committer | Allan Haldane <allan.haldane@gmail.com> | 2015-06-10 23:01:50 -0400 |
commit | df959ed7c45a923c59b6bb3ebbb4bc0b7c73df58 (patch) | |
tree | 4b9a37173792b90b7beebf5751d3b611d8ac24eb /numpy/lib/utils.py | |
parent | 943ac81b58c7c8afbfadedbdd28ab94e56ad58fa (diff) | |
download | numpy-df959ed7c45a923c59b6bb3ebbb4bc0b7c73df58.tar.gz |
BUG: make void-scalar getfield/setfield use ndarray methods
This commit modifies voidtype_get/setfield to call ndarray's
get/setfield, which does proper safety checks (for object arrays) and
broadcasts properly. This solves bugs related to void-scalar
assignment.
Also changed the calling convention of voidtype_getfield. Previously it
accepted a (dtype, offset, title) tuple and dropped title. Now it
expects only (dtype, offset), just like ndarray's getfield.
Fixes #3126.
Fixes #3561.
Diffstat (limited to 'numpy/lib/utils.py')
0 files changed, 0 insertions, 0 deletions