struct.pack behavior

Steven Clark steven.p.clark at gmail.com
Thu Jun 26 01:00:32 CEST 2008


Can anyone explain to me why
struct.pack('HB',1,2) gives 3 bytes, whereas struct.pack('BH',1,2)
gives 4 bytes?

-Steven



More information about the Python-list mailing list