struct is saving 4 bytes instead of 2

Bjoern Schliessmann usenet-mail-0306.20.chr0n0ss at spamgourmet.com
Thu Sep 13 08:05:39 EDT 2007


TonyB wrote:
> I tried
> 
> f.write(struct.pack('=h',thevariable))
> 
> and it works.

Great! :) 

Regards,


Björn

-- 
BOFH excuse #45:

virus attack, luser responsible




More information about the Python-list mailing list