[Numpy-discussion] Doc on dtypes

Robert Kern robert.kern at gmail.com
Mon Jul 14 21:56:47 EDT 2008


On Mon, Jul 14, 2008 at 19:41, Pierre GM <pgmdevlist at gmail.com> wrote:
> 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).

Where do you see this mention?

-- 
Robert Kern

"I have come to believe that the whole world is an enigma, a harmless
enigma that is made terrible by our own mad attempt to interpret it as
though it had an underlying truth."
 -- Umberto Eco



More information about the NumPy-Discussion mailing list