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 mark.dickinson
Recipients Joseph Turian, gregory.p.smith, mark.dickinson, spe-anatol
Date 2010-06-25.19:34:32
SpamBayes Score 1.2037023e-05
Marked as misclassified No
Message-id <1277494474.15.0.514687934408.issue1789@psf.upfronthosting.co.za>
In-reply-to
Content
> This documentation (http://docs.python.org/library/struct.html)
> claims that an unsigned long is 4 bytes.

I don't think it does, if you read it closely.  Of course, patches to improve the docs are always welcome. :)

If you're looking at the table of format codes, note that it refers to the *standard* size, which is the size used when standard size and alignment are in effect (i.e., when the struct format string starts with '<', '>', etc.).  That standard size is indeed 4 bytes for the 'l' and 'L' codes.
History
Date User Action Args
2010-06-25 19:34:34mark.dickinsonsetrecipients: + mark.dickinson, gregory.p.smith, spe-anatol, Joseph Turian
2010-06-25 19:34:34mark.dickinsonsetmessageid: <1277494474.15.0.514687934408.issue1789@psf.upfronthosting.co.za>
2010-06-25 19:34:32mark.dickinsonlinkissue1789 messages
2010-06-25 19:34:32mark.dickinsoncreate