
26 Jul
2020
26 Jul
'20
2:21 p.m.
I am interested in suggesting an API improvement for NumPy. I wish to make it so that the following code: @np.dtype class Point: x: np.int16 y: np.int16 would be equivalent to the following code: Point = np.dtype([('x', np.int16), ('y', np.int16)])
I am willing to submit the code changes required to make this happen.