[Numpy-discussion] NEP 51: Changing the Representation of NumPy Scalars

2022-10-28 Thread Sebastian Berg
Hi all, As mentioned earlier, I would like to propose changing the representation of scalars in NumPy. Discussion and ideas on changes are much appreciated! The main change is to show scalars as: * `np.float64(3.0)` ­instead of just `3.0` * `np.True_` instead of `True` * `np.void((3, 5), dtype

[Numpy-discussion] Re: NEP 51: Changing the Representation of NumPy Scalars

2022-10-28 Thread Ralf Gommers
On Fri, Oct 28, 2022 at 10:57 AM Sebastian Berg wrote: > Hi all, > > As mentioned earlier, I would like to propose changing the > representation of scalars in NumPy. Discussion and ideas on changes > are much appreciated! > > The main change is to show scalars as: > > * `np.float64(3.0)` ­inste

[Numpy-discussion] Re: NEP 51: Changing the Representation of NumPy Scalars

2022-10-28 Thread Stefan van der Walt
On Fri, Oct 28, 2022, at 01:54, Sebastian Berg wrote: > The main change is to show scalars as: > > * `np.float64(3.0)` ­instead of just `3.0` > * `np.True_` instead of `True` > * `np.void((3, 5), dtype=[('a', ' `(3, 5)` > * Use `np.` rather than `numpy.` for datetime/timedelta. I very much like