Stefan Krah added the comment: '>' in struct syntax implies "standard size" for 'l', which is 4 bytes. ctypes uses machine size for c_long, so on an LP64 machine you can unpack the data as:
>>> struct.unpack_from('>qq', a) (100, 200) ---------- _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue15857> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com