20 Mar
2012
20 Mar
'12
2:48 p.m.
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.