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 <rep...@bugs.python.org> <http://bugs.python.org/issue15878> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com