[Numpy-discussion] Using arr.dtype.type to check byteorder-independed dtype fails for bool

Stefan van der Walt stefan@sun.ac...
Tue Nov 13 07:18:26 CST 2007


Hi Sebastian

On Tue, Nov 13, 2007 at 01:11:33PM +0100, Sebastian Haase wrote:
> Hi,
> I need to check the array dtype in a way that it is ignoring
> differences coming only from big-endian vs. little-endian.

Does

N.issubdtype(first_dtype, second_dtype)

work?

Cheers
Stéfan


More information about the Numpy-discussion mailing list