[Numpy-discussion] Change return type of sign(timedelta64)

2025-11-13 Thread Warren Weckesser via NumPy-Discussion
There's an issue from 2017 that I'm working on fixing: https://github.com/numpy/numpy/issues/8463. The issue is that currently, the `sign` ufunc applied to a `timedelta64` instance returns a `timedelta64` instance. This means that the `sign` function for this type does not satisfy the properties t

[Numpy-discussion] Opinions on deprecating `arr.resize`?

2025-11-13 Thread Sebastian Berg
Hi all, I am wondering if the larger community has opinions on deprecating `arr.resize`: https://github.com/numpy/numpy/pull/30181 As a background, generally modifying things like the shape, data, dtype, strides (i.e. container properties) is very unsafe. That is because if that array is use