Re: [Numpy-discussion] [SciPy-Dev] ANN: SciPy 1.4.0

2019-12-16 Thread Warren Weckesser
On 12/16/19, Tyler Reddy wrote: > -BEGIN PGP SIGNED MESSAGE- > Hash: SHA256 > > Hi all, > > On behalf of the SciPy development team I'm pleased to announce > the release of SciPy 1.4.0. Fantastic, thanks Tyler! Warren > > Sources and binary wheels can be found at: > https://pypi.org/p

Re: [Numpy-discussion] removing undocumented use of __array__(dtype, context)

2019-12-16 Thread Sebastian Berg
On Mon, 2019-12-16 at 21:01 +0200, Matti Picus wrote: > 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. Howev

[Numpy-discussion] removing undocumented use of __array__(dtype, context)

2019-12-16 Thread Matti Picus
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