struct module
Just van Rossum
just at letterror.com
Sat Oct 20 06:58:58 EDT 2001
Kalle Svensson wrote:
>
> [nobody]
> > > H has a two-byte alignment requirement. There's one byte for the "B",
> > then
> > > it has to throw in a pad byte to get the correct word alignment for the
> > > "H".
> >
> > How do I disable that?
>
> You don't.
Sure you can, use one of these special format characters: = ! < >
See http://www.python.org/doc/lib/module-struct.html for their exact meaning.
Just
More information about the Python-list
mailing list