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

2021-09-17 Thread Sebastian Berg
On Thu, 2021-09-16 at 14:39 -0600, Aaron Meurer wrote: > On Thu, Sep 16, 2021 at 12:32 AM Nico Schlömer < > nico.schloe...@gmail.com> wrote: > > > > > I was playing with this though and was a little surprised to find > > > NumPy allows things like this: > > > > > > > > > a = np.array([1, 2, 3])

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

2021-09-16 Thread Aaron Meurer
On Thu, Sep 16, 2021 at 12:32 AM Nico Schlömer wrote: > > > I was playing with this though and was a little surprised to find > > NumPy allows things like this: > > > > >>> a = np.array([1, 2, 3]) > > >>> a[:] = np.array([[[5, 6, 7]]]) > > >>> a > > array([5, 6, 7]) > > Thanks Aaron for this examp