pack heterogeneous data types
Christopher Subich
spam.csubich+block at block.subich.spam.com
Wed Jun 8 17:53:05 EDT 2005
More information about the Python-list mailing list
Wed Jun 8 17:53:05 EDT 2005
- Previous message (by thread): pack heterogeneous data types
- Next message (by thread): pack heterogeneous data types
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
ashokbellur at gmail.com wrote: > 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. Look at the struct module, struct.pack sounds like what you need.
- Previous message (by thread): pack heterogeneous data types
- Next message (by thread): pack heterogeneous data types
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
More information about the Python-list mailing list