summaryrefslogtreecommitdiff
path: root/doc/release
diff options
context:
space:
mode:
authorMatti Picus <matti.picus@gmail.com>2019-04-25 16:09:00 -0700
committerGitHub <noreply@github.com>2019-04-25 16:09:00 -0700
commit171a3e5811e43643788c20075be9ba52efb83b81 (patch)
tree2370d772ffb615bd4494a1c2da5d26a0bb520fd9 /doc/release
parent0c3d18f57c842047ae23383c2eae46a042faef5d (diff)
parent58c28d4fd1c54b455d19372f0c838fed5fc71fe4 (diff)
downloadnumpy-171a3e5811e43643788c20075be9ba52efb83b81.tar.gz
Merge pull request #13334 from eric-wieser/fix-1-field-unstructured
BUG: Fix structured_to_unstructured on single-field types
Diffstat (limited to 'doc/release')
-rw-r--r--doc/release/1.17.0-notes.rst8
1 files changed, 8 insertions, 0 deletions
diff --git a/doc/release/1.17.0-notes.rst b/doc/release/1.17.0-notes.rst
index 32372c893..800b1088c 100644
--- a/doc/release/1.17.0-notes.rst
+++ b/doc/release/1.17.0-notes.rst
@@ -263,6 +263,14 @@ of NumPy functions on non-NumPy arrays, as described in `NEP 18`_. The feature
was available for testing with NumPy 1.16 if appropriate environment variables
are set, but is now always enabled.
+`numpy.lib.recfunctions.structured_to_unstructured` does not squeeze single-field views
+---------------------------------------------------------------------------------------
+Previously ``structured_to_unstructured(arr[['a']])`` would produce a squeezed
+result inconsistent with ``structured_to_unstructured(arr[['a', b']])``. This
+was accidental. The old behavior can be retained with
+``structured_to_unstructured(arr[['a']]).squeeze(axis=-1)`` or far more simply,
+``arr['a']``.
+
``__array_interface__`` offset now works as documented
------------------------------------------------------
The interface may use an ``offset`` value that was mistakenly ignored.