pack heterogeneous data types

ashokbellur at gmail.com ashokbellur at gmail.com
Wed Jun 8 17:49:00 EDT 2005


Hello,

How do i pack different data types into a struct or an array. Examples
would be helpful.

Say i need to pack an unsigned char( 0xFF) and an long( 0xAAAAAAAA)
into a single array? The reason i need to do this is send a packet over
a network.

Thanks,
-AB




More information about the Python-list mailing list