[Numpy-discussion] Question about typenum

Valentin Haenel valentin at haenel.co
Tue Oct 8 08:23:12 EDT 2013


Hi,

I have a quick question about typenum.  Certain functions, like
`PyArray_SimpleNewFromData` `PyArray_SimpleNew` take a typeenum
argument. Is there any way to go from typeenum to something that can be
passed to the dtype constructor, like mapping 12 -> '<f8'?

thanks,

V-




More information about the NumPy-Discussion mailing list