New submission from Emmanuel Bengio beng...@gmail.com:
Using the following command in Python 2.6.1:
struct.unpack(BI,12345)
Traceback (most recent call last):
File pyshell#1, line 1, in module
struct.unpack(BI,12345)
error: unpack requires a string argument of length 8
I get this error
Mark Dickinson dicki...@gmail.com added the comment:
I think this is expected behaviour: the key point is that structs can
include padding bytes. From the documentation:
By default, C numbers are represented in the machine’s native format and
byte order, and properly aligned by skipping pad