I have a numpy.array and I want to find out what endianness is used in the underlying representation.
numpy.array
A byteorder property is documented here,
byteorder
byteorder is a data type objects dtype attribute so you need to do this:
In [10]: import numpy as np In [11]: arr = np.array([1,2,3]) In [12]: arr.dtype.byteorder Out[12]: '='