summaryrefslogtreecommitdiff
path: root/numpy/core/arrayprint.py
diff options
context:
space:
mode:
authorjaimefrio <jaime.frio@gmail.com>2015-01-28 21:25:00 -0800
committerJaime Fernandez <jaime.frio@gmail.com>2015-03-08 23:12:42 -0700
commit0808ae8fc5e3d539989aeceb74cbac35bb55598e (patch)
treec204ab9879d0c41177a341ff19aff904fdbc8626 /numpy/core/arrayprint.py
parent06af9918f6bf03b8d818ec834f9fb48db57d1489 (diff)
downloadnumpy-0808ae8fc5e3d539989aeceb74cbac35bb55598e.tar.gz
ENH: PyArray_FromInterface checks descr if typestr is np.void
When the 'typestr' member of the __array_interface__ dictionary defines a np.void dtype, check the 'descr' member, and if it is a valid dtype description and it is not the default one, use it to construct the dtype for the array to return. This fixes #5081, as as_strided no longer has to worry about changing the dtype of the return.
Diffstat (limited to 'numpy/core/arrayprint.py')
0 files changed, 0 insertions, 0 deletions