[New-bugs-announce] [issue15878] struct long type size
Сергей Ковба
report at bugs.python.org
Fri Sep 7 10:15:46 CEST 2012
New submission from Сергей Ковба:
Such code PackageFile.write(struct.pack( "l", PkgHdrSize)) have different behaviour on 32-bit and 64-bit systems.
In case 32-bit system it writes to file 4 bytes. and 8 bytes in case 64-bit system, but in http://docs.python.org/library/struct.html p.7.3.2.2 long type have strict 4-byte size.
----------
messages: 169980
nosy: Сергей.Ковба
priority: normal
severity: normal
status: open
title: struct long type size
type: behavior
versions: Python 2.7
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue15878>
_______________________________________
More information about the New-bugs-announce
mailing list