diff options
author | Sebastian Berg <sebastian@sipsolutions.net> | 2020-04-30 19:50:44 -0500 |
---|---|---|
committer | Sebastian Berg <sebastian@sipsolutions.net> | 2020-09-02 20:11:21 -0500 |
commit | cfd553dad7c1f315b7508eb56ac4527afc444ebb (patch) | |
tree | 77f50e201acf4ecebc66b008a35726a835cccf94 /doc/release | |
parent | e3c84a44b68966ab887a3623a0ff57169e508deb (diff) | |
download | numpy-cfd553dad7c1f315b7508eb56ac4527afc444ebb.tar.gz |
ENH: Implement concatenate dtype and casting keyword arguments
Unfortunately, the casting was not consistent and sometimes used
force casting (axis=None) while normally same kind casting was used.
This thus deprecates the `force_casting` corner case, so that
casting has to be provided in the future.
Diffstat (limited to 'doc/release')
-rw-r--r-- | doc/release/upcoming_changes/16134.compatibility.rst | 8 | ||||
-rw-r--r-- | doc/release/upcoming_changes/16134.improvement.rst | 6 |
2 files changed, 14 insertions, 0 deletions
diff --git a/doc/release/upcoming_changes/16134.compatibility.rst b/doc/release/upcoming_changes/16134.compatibility.rst new file mode 100644 index 000000000..4270ea271 --- /dev/null +++ b/doc/release/upcoming_changes/16134.compatibility.rst @@ -0,0 +1,8 @@ +Same kind casting in concatenate with ``axis=None`` +--------------------------------------------------- +Unlike most `~numpy.concatenate` calls, when no axis +was given (the ravelled arrays being concatenated) +previously "unsafe" casting was used. +This is now deprecated and "same kind" casting will be +used by default. The new ``casting`` keyword argument +can be used to retain the old behaviour. diff --git a/doc/release/upcoming_changes/16134.improvement.rst b/doc/release/upcoming_changes/16134.improvement.rst new file mode 100644 index 000000000..0699f44bd --- /dev/null +++ b/doc/release/upcoming_changes/16134.improvement.rst @@ -0,0 +1,6 @@ +Concatenate supports providing an output dtype +---------------------------------------------- +Support was added to `~numpy.concatenate` to provide +an output ``dtype`` and ``casting`` using keyword +arguments. The ``dtype`` argument cannot be provided +in conjunction with the ``out`` one. |