[Numpy-discussion] Doc on dtypes

Pierre GM pgmdevlist at gmail.com
Mon Jul 14 20:41:43 EDT 2008


On Monday 14 July 2008 19:39:39 Robert Kern wrote:
> Right. If you want order, use dtype.descr, or sort on the last item in
> the tuple. We can probably reimplement the dictproxy to guarantee
> order.

Oh, with dtype.names and dtype.fields I can work. The Guide mentions a key 
[-1] in dtype.fields that should store the names in order: that would be 
quite useful but it doesn't work (KeyError).




More information about the NumPy-Discussion mailing list