[issue4270] struct module: pack/unpack and byte order on x86_64

2008-12-27 Thread Antoine Pitrou
Antoine Pitrou added the comment: The change in result length is actually normal. If you look at the doc for the struct module, the default size and byte order character is "@", which means "native byte order and native size". On x86-64 Linux, the "native" long size is 64 bits, so the result is

[issue4270] struct module: pack/unpack and byte order on x86_64

2008-11-06 Thread Mikhail Terekhov
New submission from Mikhail Terekhov <[EMAIL PROTECTED]>: pack/unpack behavior changes unexpectedly depending on the byte order: l:/tmp >uname -pmiovs Linux #1 SMP 2008-10-14 22:17:43 +0200 x86_64 x86_64 x86_64 GNU/Linux l:/tmp >python python Python 2.5.1 (r251:54863, Aug 1 2008, 00:35:20) [GC