summaryrefslogtreecommitdiff
path: root/numpy/lib/arraypad.py
diff options
context:
space:
mode:
authorMircea-Akos Brumă <bruma.mircea.a@gmail.com>2018-11-15 14:53:53 +0100
committerCharles Harris <charlesr.harris@gmail.com>2018-11-15 07:53:53 -0600
commit1fccdccf9f326de5d4f0f2982f35ba4ead16156c (patch)
tree5f53f68df41e765d62fd301f74356e708f1f68a8 /numpy/lib/arraypad.py
parent13210988f856be33a6e08666bb9f7c80bc5263b3 (diff)
downloadnumpy-1fccdccf9f326de5d4f0f2982f35ba4ead16156c.tar.gz
BUG: Fix for #10533 np.dtype(ctype) does not respect endianness (#12380)
* BUG: Fix for #10533 np.dtype(ctype) does not respect endianness See: #10533 Added some code that uses the __name__ of the ctypes type. Also added some new test to make sure we'll know if the ctypes data that allows this workaround breaks in the future. * Fix for #10533 np.dtype(ctype) does not respect endianness Removed the TODO for this bug. * Fix for #10533 np.dtype(ctype) does not respect endianness Solved the recursiveness issue that failed the automated test. Also did some of Eric's requested changes. * Small mistake in the new function fixed. * Changed 'if t.__name__.endswith('_be') ' with 'if t.__ctypes_be__ is t' on Eric's suggestion. * Code cleanup on Eric's recommendations. * Cleaned up the tests on Eric's suggestions.
Diffstat (limited to 'numpy/lib/arraypad.py')
0 files changed, 0 insertions, 0 deletions