[Numpy-discussion] Ndarray static typing: Order of generic types
bas van beek
bas.vanbeek at hotmail.com
Wed Oct 28 17:43:28 EDT 2020
Hey all,
With the recent merging of numpy/numpy#16759<https://github.com/numpy/numpy/pull/16759> we're at the point where `ndarray` can be made generic w.r.t. its dtype and shape.
An open question which yet remains is to order in which these two parameters should appear (numpy/numpy#16547<https://github.com/numpy/numpy/issues/16547>):
* `ndarray[Dtype, Shape]`
* `ndarray[Shape, Dtype]`
There has been a some discussion about this question in issue 16547, but a consensus has not yet to be reached.
Most people seem to slightly preferring one option over the other.
Are there any further thoughts on this subject?
Regards,
Bas van Beek
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://mail.python.org/pipermail/numpy-discussion/attachments/20201028/5cb32af6/attachment.html>
More information about the NumPy-Discussion
mailing list