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

Stefan van der Walt stefan at sun.ac.za
Tue Nov 13 08:18:26 EST 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