diff options
author | Sebastian Berg <sebastian@sipsolutions.net> | 2020-01-16 18:04:48 -0600 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-01-16 18:04:48 -0600 |
commit | 7838c8f24fe66375ce8efd2e47a8c78c839fb9d3 (patch) | |
tree | 67222d8a7fc0985b76f79a69f32f142000bfe19e /doc/release | |
parent | e4c91ccbae79d693970fe3d54e8f771804f90c32 (diff) | |
parent | bc6d573a58bf8a8f4448f26ed220afff93df7c97 (diff) | |
download | numpy-7838c8f24fe66375ce8efd2e47a8c78c839fb9d3.tar.gz |
Merge pull request #15217 from eric-wieser/deprecate-shape-0
DEP: records: Deprecate treating shape=0 as shape=None
Diffstat (limited to 'doc/release')
-rw-r--r-- | doc/release/upcoming_changes/15217.deprecation.rst | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/doc/release/upcoming_changes/15217.deprecation.rst b/doc/release/upcoming_changes/15217.deprecation.rst new file mode 100644 index 000000000..e9dd0995d --- /dev/null +++ b/doc/release/upcoming_changes/15217.deprecation.rst @@ -0,0 +1,11 @@ +Passing ``shape=0`` to factory functions in ``numpy.rec`` is deprecated +----------------------------------------------------------------------- + +``0`` is treated as a special case by these functions, which aliases to +``None``. In future, ``0`` will not be a special case, and will be treated +as an array length like any other integer is. The affected functions are: + +* `numpy.core.records.fromarrays` +* `numpy.core.records.fromrecords` +* `numpy.core.records.fromstring` +* `numpy.core.records.fromfile` |