[issue1789] incorrect assumption about unsigned long byte size

Gregory P. Smith report at bugs.python.org
Wed Jan 23 18:55:22 CET 2008


Gregory P. Smith added the comment:

eew, so the struct module does map as documented to the C types listed
in the docs.  yuck.  regardless, changing the Ls to Is will fix the
tutorial document code.  I'll do that.

I believe there are also other instances of wrong uses of L in struct in
the code such as the zipfile module that will fail on LP64 platforms. 
I'll look for those (and why they weren't caught by unit tests).

__________________________________
Tracker <report at bugs.python.org>
<http://bugs.python.org/issue1789>
__________________________________


More information about the Python-bugs-list mailing list