[Python-ideas] Exact integral types in struct

Greg Ewing greg.ewing at canterbury.ac.nz
Wed Mar 21 07:31:39 CET 2012

Serhiy Storchaka wrote:

> I think that in the documentation for the struct module should clarify, 
> what is the *standard* size and alignment.

Yes, it's a bit perplexing the way it casually throws in the
word "standard" without any elaboration at that point. It leaves
the reader wondering -- which standard? It sounds like it's
referring to some widely-recognised standard that the reader is
assumed to already know about, whereas it's actually something
made up for the struct module.

Also I think it would help to point out that the standard is
designed to be platform-independent as well as compiler-independent.
One can infer this from what is said, but it wouldn't hurt to
point it out explicitly.


More information about the Python-ideas mailing list