[Tutor] revisiting struct and bytes again.

shawn bright nephish at gmail.com
Wed Oct 4 19:35:05 CEST 2006

Hey there,

this time my question is a bit simpler.
i can make a byte a string or number or whatever now. Up to the number 255.
I now have a problem with something that comes in as a 4 byte representation
the number of seconds since 1970.
I have been using ord(byte) to make sense of the messages so far, but i
don't know how to add bytes greater than 255.

the c program that sends us these defines the variable as an unsigned long

anyone know how to make these four bytes a number of seconds ?


-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.python.org/pipermail/tutor/attachments/20061004/d89d47ce/attachment.htm 

More information about the Tutor mailing list