[Numpy-discussion] Re: surprising behavior from array indexing

2024-12-30 Thread Mark Harfouche via NumPy-Discussion
On Mon, Dec 30, 2024 at 1:51 PM Robert Kern wrote: > On Mon, Dec 30, 2024 at 10:28 AM Mark Harfouche via NumPy-Discussion < > numpy-discussion@python.org> wrote: > >> Happy new year everybody! >> >> I've been upgrading my code to start to support arr

[Numpy-discussion] surprising behavior from array indexing

2024-12-30 Thread Mark Harfouche via NumPy-Discussion
Happy new year everybody! I've been upgrading my code to start to support array indexing and in my tests I found something that was well documented, but surprising to me. I've tried to read through https://numpy.org/doc/stable/user/basics.indexing.html#combining-advanced-and-basic-indexing and ev