Greetings,

I'm looking at the struct module for binary packing of ints and floats. The documentation refers to C datatypes. It's been many years since I looked at C, but I seem to remember that the data type sizes were not fixed -- for example, an int might be two byes on one machine, and four bytes on the next. Can any C programmers verify this? If it is true, does that mean that struct.pack('h', 8001) might give me different results depending on the machine it's running on?

Thanks for any help!
--
Ethan
--
http://mail.python.org/mailman/listinfo/python-list

Reply via email to