diff options
author | Allan Haldane <allan.haldane@gmail.com> | 2015-03-05 16:58:18 -0500 |
---|---|---|
committer | Allan Haldane <allan.haldane@gmail.com> | 2015-06-17 13:51:43 -0400 |
commit | 3c1a13dea6a7e189675977ad65ea230ce4816061 (patch) | |
tree | b9a55bd90db5f57470fdd4d3267bc9862e5dbae1 /numpy/core/arrayprint.py | |
parent | 8c86a0a879a9f6d8bc9b225e95512fd7f2fca964 (diff) | |
download | numpy-3c1a13dea6a7e189675977ad65ea230ce4816061.tar.gz |
ENH: simplify field indexing of structured arrays
This commit simplifies the code in array_subscript and
array_assign_subscript related to field access. This fixes #4806,
and also removes a potential segfaults, eg if the array is indexed using
an sequence-like object that raises an exception in getitem.
Also fixes #5631, related to creation of structured dtypes
with no fields (an unusual and probably useless edge case).
Also moves all imports in _internal.py to the top.
Fixes #4806.
Fixes #5631.
Diffstat (limited to 'numpy/core/arrayprint.py')
0 files changed, 0 insertions, 0 deletions