low level data types

Daniel Dittmar daniel.dittmar at sap.corp
Wed Feb 15 11:30:21 EST 2006


dementrio wrote:
> Thanks for the hint!
> 
> However now I have another problem - endianness (the client runs on
> powerpc, the server on x86). I found that simply reversing the stuff I
> recv() works, but is there any cleaner way for taking care of this?
> 

http://docs.python.org/lib/module-struct.html
and search for "Alternatively, the first character of the format string 
can be used to indicate the byte order"

Daniel



More information about the Python-list mailing list