<p dir="ltr">That's essentially what datashape did over in the blaze ecosystem. It gets a bit fancier to support ragged arrays and optional types.</p>
<p dir="ltr"><a href="http://datashape.readthedocs.org/en/latest/">http://datashape.readthedocs.org/en/latest/</a></p>
<div class="gmail_quote">On Dec 10, 2015 5:14 AM, "Gerrit Holl" <<a href="mailto:gerrit.holl@gmail.com">gerrit.holl@gmail.com</a>> wrote:<br type="attribution"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi,<br>
<br>
I have made a modest proposal in issue #6752<br>
<<a href="https://github.com/numpy/numpy/issues/6752" rel="noreferrer" target="_blank">https://github.com/numpy/numpy/issues/6752</a>>.  Basically, the proposal<br>
is to add an `ndim` attribute to dtypes.  Currently, arrays have a<br>
shape and an ndim attribute, where ndim equals len(shape).  dtype<br>
objects have a shape attribute, but no corresponding ndim.<br>
<br>
An ndim attribute would help in immediately determining whether a<br>
field in a structured dtype is multidimensional or not.<br>
<br>
Thoughts?<br>
<br>
Gerrit.<br>
_______________________________________________<br>
NumPy-Discussion mailing list<br>
<a href="mailto:NumPy-Discussion@scipy.org">NumPy-Discussion@scipy.org</a><br>
<a href="https://mail.scipy.org/mailman/listinfo/numpy-discussion" rel="noreferrer" target="_blank">https://mail.scipy.org/mailman/listinfo/numpy-discussion</a><br>
</blockquote></div>