diff options
author | Charles Harris <charlesr.harris@gmail.com> | 2015-01-26 20:51:58 -0500 |
---|---|---|
committer | Charles Harris <charlesr.harris@gmail.com> | 2015-01-26 20:51:58 -0500 |
commit | fbcc24fa7cedd2bbf25506a0683f89d13f2d4846 (patch) | |
tree | 952281370d954ac2299802cbd531ed31fde674e8 /doc | |
parent | a786c82c312eb7baf8c2879180eb1345f79d8c89 (diff) | |
parent | 3cd9e7339c37880cff0a2f381e881e0e612c4948 (diff) | |
download | numpy-fbcc24fa7cedd2bbf25506a0683f89d13f2d4846.tar.gz |
Merge pull request #5505 from ahaldane/recarray_returntype
BUG: Fix recarray getattr and getindex return types
Diffstat (limited to 'doc')
-rw-r--r-- | doc/release/1.10.0-notes.rst | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/doc/release/1.10.0-notes.rst b/doc/release/1.10.0-notes.rst index a04a46d17..43dc4b5c6 100644 --- a/doc/release/1.10.0-notes.rst +++ b/doc/release/1.10.0-notes.rst @@ -61,6 +61,15 @@ C API The changes to *swapaxes* also apply to the *PyArray_SwapAxes* C function, which now returns a view in all cases. +recarray field return types +~~~~~~~~~~~~~~~~~~~~~~~~~~~ +Previously the returned types for recarray fields accessed by attribute and by +index were inconsistent, and fields of string type were returned as chararrays. +Now, fields accessed by either attribute or indexing will return an ndarray for +fields of non-structured type, and a recarray for fields of structured type. +Notably, this affect recarrays containing strings with whitespace, as trailing +whitespace is trimmed from chararrays but kept in ndarrays of string type. +Also, the dtype.type of nested structured fields is now inherited. New Features ============ |