[Numpy-discussion] test_multiarray.test_clip fails on Solaris 8 system

Stefan van der Walt stefan@sun.ac...
Sun Apr 1 16:22:46 CDT 2007


Hi Chris

Would you please run the following commands and show their output?

import sys
print sys.byteorder

import numpy as N
print N.array([1,2,3],N.dtype(N.int16).newbyteorder('<')).dtype.byteorder
print N.array([1,2,3],N.dtype(N.int16).newbyteorder('>')).dtype.byteorder
print N.array([1,2,3],N.dtype(N.int16).newbyteorder('=')).dtype.byteorder

Output on my little-endian system is

little
<
>
=

and I'd be curious to see if the output on a big-endian system follows
the same pattern.

I'd expect

big
<
>
=

Cheers
Stéfan


More information about the Numpy-discussion mailing list