summaryrefslogtreecommitdiff
path: root/numpy/doc/structured_arrays.py
diff options
context:
space:
mode:
authorDarsh P. Ranjan <darsh.ranjan@here.com>2014-11-09 23:20:16 -0800
committerCharles Harris <charlesr.harris@gmail.com>2015-01-22 10:48:38 -0700
commit82dc4fc7b007a761acf781589b796eab0413c614 (patch)
tree803a0c24e24edd0f7758cf414cccdc18d375b5de /numpy/doc/structured_arrays.py
parentc51770d6c553f9c69ceda324a2e7c7a249185366 (diff)
downloadnumpy-82dc4fc7b007a761acf781589b796eab0413c614.tar.gz
BUG: Fix astype for structured array fields of different byte order.
The offending commit is c53b0e4, which introduced two regressions: - using astype to cast a structured array to one with a different byte order no longer works; - comparing structured-array dtypes can give incorrect results if the two dtypes have different byte orders. This pull request should fix both. One thing I wasn't sure about is reordering struct fields. In my implementation, the `equiv`, `same_kind`, and `safe` rules are now allowed to reorder fields. If that isn't desired, though, it's a pretty easy change.
Diffstat (limited to 'numpy/doc/structured_arrays.py')
0 files changed, 0 insertions, 0 deletions