|
From: Francesc A. <fa...@ca...> - 2006-01-25 08:40:57
|
A Dimecres 25 Gener 2006 08:33, Travis Oliphant va escriure:
> Something like this:
>
> descriptor =3D 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.
=2D-=20
>0,0< Francesc Altet =A0 =A0 http://www.carabos.com/
V V C=E1rabos Coop. V. =A0=A0Enjoy Data
"-"
|