[issue1789] incorrect assumption about unsigned long byte size

Gregory P. Smith report at bugs.python.org
Wed Jan 23 21:38:01 CET 2008


Gregory P. Smith added the comment:

The documentation for the struct module says:

 "short is 2 bytes; int and long are 4 bytes; long long (__int64 on
Windows) is 8 bytes"

and lists 'l' and 'L' as the pack code for a C long.

As it is implemented today, the documentation is incorrect.  On an LP64
host (pretty much any 64-bit linux, bsd or unixish OS; not windows) a
long is 8 bytes.

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


More information about the Python-bugs-list mailing list