Python pack and unpack question

joe shoemaker joemystery123 at gmail.com
Mon Jul 14 22:08:26 EDT 2008


If you have the following:

      data = unpack('>L', sock.recv(4))

Does this line of code means that incoming data is big endian and
unpack it to endianess of local machine? If local machine is little
endian, then big endian is automatically converted to little endian
format?

thank you.



More information about the Python-list mailing list