[Numpy-discussion] Re: Unpacking 0-D object arrays when setting item/filling

2022-02-14 Thread Stefan van der Walt
On Mon, Feb 14, 2022, at 12:45, Sebastian Berg wrote: > But this is currently *not* consistently the case. I wish to make this > consistent. The confusion is around object arrays, though: > > value = np.array(None, dtype=object) > arr[0] = value > > Stores `value` without unpacking it cur

[Numpy-discussion] Unpacking 0-D object arrays when setting item/filling

2022-02-14 Thread Sebastian Berg
Hi all, TL;DR: Are there strong opinions on what: arr = np.array([None]) arr[0] = np.array(3) arr.fill(np.array(3)) Should give? Right now NumPy usually stores the 0-D array, I want to make `arr.fill()` consistent, so that is what it would be doing also. **Long discussion:** NumPy

[Numpy-discussion] NumPy community meeting – Wednesday, February 16th, 2022 at 18:00 (6 pm) UTC

2022-02-14 Thread Inessa Pawson
Our next NumPy Community meeting is scheduled for Wednesday, February 16th at 18:00 (6 pm) UTC. Join us via Zoom: https://berkeley.zoom.us/j/762261535 As always, everyone is welcome and encouraged to attend. To add to the meeting agenda the topics you’d like to discuss, follow the link: https://h