diff options
author | Sebastian Berg <sebastian@sipsolutions.net> | 2020-01-16 17:07:19 -0600 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-01-16 17:07:19 -0600 |
commit | e4c91ccbae79d693970fe3d54e8f771804f90c32 (patch) | |
tree | 575e5ffc2410763099bac2775a6a998e4da07e21 /doc/release | |
parent | 57e20038e4efac1a7b4828881c3f8fe6438b3c11 (diff) | |
parent | f38504c5bef425c7dbd372c904a7d9e9bbfe389c (diff) | |
download | numpy-e4c91ccbae79d693970fe3d54e8f771804f90c32.tar.gz |
Merge pull request #15118 from mattip/cleanup-array-call
API: remove undocumented use of __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. |