[Numpy-discussion] Should dtypes have an ndim attribute?

Nathaniel Smith njs at pobox.com
Thu Dec 10 16:30:33 EST 2015

On Dec 10, 2015 4:11 AM, "Andy Ray Terrel" <andy.terrel at gmail.com> wrote:
> That's essentially what datashape did over in the blaze ecosystem. It
gets a bit fancier to support ragged arrays and optional types.
> http://datashape.readthedocs.org/en/latest/

IIUC this is a much more modest proposal, for numpy's existing dtypes that
represent subarrays.

It seems pretty harmless I guess. It's a little uncomfortable to be adding
yet another attribute to all dtypes that will only be used by one obscure
subset of dtypes, but it's no worse than a bunch of other already existing
attributes in that respect.

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/numpy-discussion/attachments/20151210/30074a60/attachment.html>

More information about the NumPy-Discussion mailing list