In converting some code from numarray to numpy I had this: isBigendian = (arr.isbyteswapped() != numarray.isBigEndian)
The only numpy version I've come up with is: isBigEndian = (arr.dtype.descr == '>')
which is short but very obscure. Has anyone got a suggestion for a clearer test? I found lots of *almost* useful flags and methods.