Converting data to little endian

Andrew MacIntyre andymac at bullseye.apana.org.au
Tue Dec 7 15:26:46 EST 1999


On Tue, 7 Dec 1999 victor_ng at my-deja.com wrote:

> Hi, I was wondering how to get my data to be represented in little
> endian format.  I know that I can use the socket functions to convert to
> network byte order (big endian), but I need to convert to little endian
> (not just the host byte order).

module struct?

--
Andrew I MacIntyre                     "These thoughts are mine alone..."
E-mail: andrew.macintyre at aba.gov.au    (work) | Snail: PO Box 370
        andymac at bullseye.apana.org.au  (play) |        Belconnen  ACT  2616
Fido:   Andrew MacIntyre, 3:620/243.18        |        Australia





More information about the Python-list mailing list