[Numpy-discussion] some question on new dtype

Francesc Altet faltet at carabos.com
Wed Jan 25 00:41:11 CST 2006


A Dimecres 25 Gener 2006 08:33, Travis Oliphant va escriure:
> Something like this:
>
> descriptor = a.dtype.arrdescr   # this could probably be renamed to
>                                 # descr now that we're
>                                 # not using that word.

+1 for this

That way we should have (in case of a int32 type):

>>> dtype.num
11
>>> dtype.char
'f'
>>> dtype.str
'<f4'
>>> dtype.name
'float32'
>>> dtype.descr
[('', '<f4')]

which I find quite logic.

-- 
>0,0<   Francesc Altet     http://www.carabos.com/
V   V   Cárabos Coop. V.   Enjoy Data
 "-"





More information about the Numpy-discussion mailing list