Read long int from binary file

Paul Rubin http
Tue Oct 14 11:46:53 EDT 2003


Enrico Morelli <enrico_morelli at yahoo.com> writes:
> I cannot know the format (little or big endian) and I have to perform the
> properly 4 byte reverse order swapping.

If you don't know the endianness, you can't tell whether to swap or not.




More information about the Python-list mailing list