[Numpy-discussion] Proposal: add ndarray.keys() to return dtype.names
shoyer at gmail.com
Tue Sep 30 16:30:43 EDT 2014
On Tue, Sep 30, 2014 at 1:22 PM, Eelco Hoogendoorn <
hoogendoorn.eelco at gmail.com> wrote:
> On more careful reading of your words, I think we agree; indeed, if keys()
> is present is should return an iterable; but I don't think it should be
> present for non-structured arrays.
Indeed, I think we do agree. The attribute can simply be missing (e.g.,
accessing it raises AttributeError) for non-structured arrays.
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the NumPy-Discussion