diff options
author | mattip <matti.picus@gmail.com> | 2019-12-16 18:07:57 +0200 |
---|---|---|
committer | mattip <matti.picus@gmail.com> | 2020-01-16 08:24:45 +1100 |
commit | f38504c5bef425c7dbd372c904a7d9e9bbfe389c (patch) | |
tree | 796f9faf611abb1fb8388c12d180c67dc2537b52 /doc/release | |
parent | 266c588b393ea0d3b89d583e014e9befe654bed2 (diff) | |
download | numpy-f38504c5bef425c7dbd372c904a7d9e9bbfe389c.tar.gz |
MAINT: remove undocumented use of context in __array__(dtype, context)
Diffstat (limited to 'doc/release')
-rw-r--r-- | doc/release/upcoming_changes/15118.change.rst | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/doc/release/upcoming_changes/15118.change.rst b/doc/release/upcoming_changes/15118.change.rst new file mode 100644 index 000000000..f14beebbe --- /dev/null +++ b/doc/release/upcoming_changes/15118.change.rst @@ -0,0 +1,7 @@ +Remove handling of extra argument to ``__array__`` +-------------------------------------------------- +A code path and test have been in the code since NumPy 0.4 for a two-argument +variant of ``__array__(dtype=None, context=None)``. It was activated when +calling ``ufunc(op)`` or ``ufunc.reduce(op)`` if ``op.__array__`` existed. +However that variant is not documented, and it is not clear what the intention +was for its use. It has been removed. |