[Numpy-discussion] arr.dtype.kind is 'i' for dtype=unit !?
oliphant.travis at ieee.org
Tue Sep 19 13:46:32 CDT 2006
Sebastian Haase wrote:
> What are the possible values of
> arr.dtype.kind ?
> It seems that signed and unsigned are considered to be the same "kind"
> (OK - this is just showing off our amd64 linux ;-) )
> How can I distinguish signed from unsigned without having to list all possible
> cases explicitly ?
Hmm.... This is a problem. There is a 'u' kind for unsigned integers.
On my system I get 'u' when running the code you just gave.
Can anybody on a 64-bit system confirm?
More information about the Numpy-discussion