[Python-ideas] Exact integral types in struct
Serhiy Storchaka
storchaka at gmail.com
Tue Mar 20 20:48:08 CET 2012
20.03.12 20:32, Guido van Rossum написав(ла):
> Using the '<' and'>' prefixes to the format string you can force
> standard size and alignment. Do you have a specific bit of code in the
> stdlib in mind that is incorrectly using native alignment?
Hmm. It seems that I have been a temporary insanity. I just now noticed
that these prefixes indicate not only endianess but also size. My fault.
Excuse me for undue disturbance.
However, the trick with struct.unpack('dd') in Lib/json/decoder.py
amazes me.
More information about the Python-ideas
mailing list