Thu, 04 Nov 2010 13:33:48 +0100, Francesc Alted wrote: [clip] > To solve this, just apply byteswap once more: > >>>> a = np.int32(300) >>>> a.byteswap().byteswap() > 300 > > and you are done. Or directly specify big-endian byte order when reading fromfile(fp, '>i4', 3)