This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author tshepang
Recipients docs@python, mark.dickinson, meador.inge, tshepang
Date 2012-05-09.13:51:51
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1336571512.12.0.453082723156.issue14765@psf.upfronthosting.co.za>
In-reply-to
Content
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: http://hg.python.org/cpython/file/d3ddbad31b3e/Doc/library/struct.rst#l299
History
Date User Action Args
2012-05-09 13:51:52tshepangsetrecipients: + tshepang, mark.dickinson, meador.inge, docs@python
2012-05-09 13:51:52tshepangsetmessageid: <1336571512.12.0.453082723156.issue14765@psf.upfronthosting.co.za>
2012-05-09 13:51:51tshepanglinkissue14765 messages
2012-05-09 13:51:51tshepangcreate