[issue15878] struct long type size

Mark Dickinson report at bugs.python.org
Fri Sep 7 11:02:14 CEST 2012


Mark Dickinson added the comment:

This is expected behaviour.  By default, struct.pack and struct.unpack use the *native* size and alignment.  Use "<l" if you want platform-independent behaviour.

Relevant docs:

http://docs.python.org/library/struct.html#byte-order-size-and-alignment

----------
nosy: +mark.dickinson
resolution:  -> invalid
status: open -> closed

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue15878>
_______________________________________


More information about the Python-bugs-list mailing list