Re: [Numpy-discussion] deprecating float(x) for ndim > 0

2021-09-15 Thread Nico Schlömer
data-apis.org/array-api/latest/API_specification/array_object.html#float-self. > > On Wed, Sep 15, 2021 at 6:18 AM Nico Schlömer > wrote: > > > > Hi everyone, > > > > This is seeking input on PR [1] which I've worked on with @eric-wieser > > and @seber

Re: [Numpy-discussion] deprecating float(x) for ndim > 0

2021-09-15 Thread Nico Schlömer
@george trojan The SciPy devs are very careful not to break backwards compatibility, even if the changes are arguably useful. That's why the impact of the numpy PR remains under the hood for SciPy users. I'd love to see SciPy become more consistent with array dimensionality, too, but that's a diff

[Numpy-discussion] deprecating float(x) for ndim > 0

2021-09-15 Thread Nico Schlömer
Hi everyone, This is seeking input on PR [1] which I've worked on with @eric-wieser and @seberg. It deprecates ``` float(x) ``` if `x` is an array of ndim > 0. (It works with all arrays of size 1 right now.) This aligns the behavior of float() on ndarrays with float() on lists which already fails