Re: Python pack and unpack question

2008-07-15 Thread Mark Tolonen
joe shoemaker [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] 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

Python pack and unpack question

2008-07-14 Thread joe shoemaker
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. --