[Numpy-discussion] arr.dtype.kind is 'i' for dtype=unit !?

Sebastian Haase haase at msg.ucsf.edu
Tue Sep 19 12:23:57 CDT 2006

What are the possible values of 
arr.dtype.kind ?

It seems that signed and unsigned are considered to be the same "kind" 
>>> arr=N.arange(10,dtype=N.uint)
>>> arr.dtype.kind
>>> arr.dtype.itemsize
(OK - this is just showing off our amd64 linux ;-) )

How can I distinguish signed from unsigned without having to list all possible 
cases explicitly ?

Sebastian Haase

More information about the Numpy-discussion mailing list