[issue18607] struct.unpack

2013-07-31 Thread Tim Peters
Tim Peters added the comment: Looks fine to me. The third one uses native size and alignment (see the "Byte Order, Size, and Alignment" section of the struct docs). After the first 5 B's, a pad byte is inserted so that the next H is properly aligned (to a 2-byte boundary). That makes 6 byte

[issue18607] struct.unpack

2013-07-31 Thread Andres Adjimann
Andres Adjimann added the comment: sorry my bad. -- resolution: -> invalid status: open -> closed ___ Python tracker ___ ___ Python-b

[issue18607] struct.unpack

2013-07-31 Thread Andres Adjimann
New submission from Andres Adjimann: There is something wrong with struct.unpack. import struct print struct.calcsize('BHB') 8 print struct.calcsize('BHB') 9 -- messages: 194009 nosy: Andres.Adjimann priority: normal severity: normal status: open title: struct.unpack type: behav