[Numpy-discussion] Automatic Clipping of array to upper / lower bounds of dtype

2024-03-09 Thread Dom Grigonis
Hello, Can't find answer to this anywhere. What I would like is to automatically clip the values if they breach the bounds. I have done a simple clipping, and overwritten __iadd__, __isub__, __setitem__, … But I am wandering if there is a specified way to do this. Or maybe at least a centrali

[Numpy-discussion] Re: numpy 2.0.x has been branched.

2024-03-09 Thread Ilhan Polat
Maybe someone composes another preemptive blog post about this? I think this needs some banging on the pans to soften its landing since NumPy 2.0 is a big deal. The community will take care of its circulation in typical places. We always get the grilling no matter the outcome :) But I think it is

[Numpy-discussion] Re: numpy 2.0.x has been branched.

2024-03-09 Thread Ralf Gommers
On Sat, Mar 9, 2024 at 2:03 AM Oscar Benjamin wrote: > On Sat, 9 Mar 2024 at 00:44, Charles R Harris > wrote: > > > > About a month from now. > > What will happen about a month from now? It might seem obvious to you > but I can interpret this in different ways. > > To be clear numpy 2.0 is expec