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 gregory.p.smith
Recipients gregory.p.smith, spe-anatol
Date 2008-01-24.09:40:16
SpamBayes Score 0.0025255017
Marked as misclassified No
Message-id <1201167619.08.0.225378423031.issue1789@psf.upfronthosting.co.za>
In-reply-to
Content
Anders J. Munch on python-dev correctly says:

You overlooked the words "Standard size and alignment are as follows"
that start the quoted paragraph.  It's a little confusing because
standard size is not the default.  The default is platform-specific
sizes.  Only if you start the format string with >, <, ! or = do you
get standard sizes.

The reference documentation is correct as it stands, and, I suspect,
so is the LP64 implementation.  Doesn't struct.pack('>l',42) produce a
4-byte string on LP64?

The tutorial at
http://docs.python.org/tut/node13.html#SECTION0013300000000000000000%3E
has a bug though: the format string should use '<'.

I believe zipfile.py correctly uses '<' throughout.
History
Date User Action Args
2008-01-24 09:40:19gregory.p.smithsetspambayes_score: 0.0025255 -> 0.0025255017
recipients: + gregory.p.smith, spe-anatol
2008-01-24 09:40:19gregory.p.smithsetspambayes_score: 0.0025255 -> 0.0025255
messageid: <1201167619.08.0.225378423031.issue1789@psf.upfronthosting.co.za>
2008-01-24 09:40:17gregory.p.smithlinkissue1789 messages
2008-01-24 09:40:16gregory.p.smithcreate