Gerrit Holl
2015-12-10 11:13:26 UTC
Hi,
I have made a modest proposal in issue #6752
<https://github.com/numpy/numpy/issues/6752>. Basically, the proposal
is to add an `ndim` attribute to dtypes. Currently, arrays have a
shape and an ndim attribute, where ndim equals len(shape). dtype
objects have a shape attribute, but no corresponding ndim.
An ndim attribute would help in immediately determining whether a
field in a structured dtype is multidimensional or not.
Thoughts?
Gerrit.
I have made a modest proposal in issue #6752
<https://github.com/numpy/numpy/issues/6752>. Basically, the proposal
is to add an `ndim` attribute to dtypes. Currently, arrays have a
shape and an ndim attribute, where ndim equals len(shape). dtype
objects have a shape attribute, but no corresponding ndim.
An ndim attribute would help in immediately determining whether a
field in a structured dtype is multidimensional or not.
Thoughts?
Gerrit.