[issue14765] the struct example should give consistent results across different hardware platforms

2012-05-09 Thread Tshepang Lekhonkhobe
New submission from Tshepang Lekhonkhobe tshep...@gmail.com: This example [1] assumes you are using a specific platform to check it out. I am using amd64, and I get different results. To fix, I prefix the format string with '': before: pack('hhl', 1, 2, 3) after: pack('hhl', 1, 2, 3) 1:

[issue14765] the struct example should give consistent results across different hardware platforms

2012-05-09 Thread Meador Inge
Meador Inge mead...@gmail.com added the comment: And the examples make an explicit note of that: .. note:: All examples assume a native byte order, size, and alignment with a big-endian machine. AMD64 is little-endian; the examples are noted to be in big-endian. Is that note not

[issue14765] the struct example should give consistent results across different hardware platforms

2012-05-09 Thread Tshepang Lekhonkhobe
Tshepang Lekhonkhobe tshep...@gmail.com added the comment: Sadly, I noticed it only after submitting this report. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14765 ___

[issue14765] the struct example should give consistent results across different hardware platforms

2012-05-09 Thread Meador Inge
Changes by Meador Inge mead...@gmail.com: -- resolution: - invalid stage: - committed/rejected status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14765 ___