[Numpy-discussion] NumPy dtype API improvement suggestion

Eyal Kutz eyal.kutz at gmail.com
Sun Jul 26 10:21:29 EDT 2020

I am interested in suggesting an API improvement for NumPy.
I wish to make it so that the following code:
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.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/numpy-discussion/attachments/20200726/fcb323b1/attachment.html>

More information about the NumPy-Discussion mailing list