unpacking int + long long in python
<p>I have to following strange problem while trying to read and unpack int32 + int64 in python 2.7.9</p>

<pre><code>file = open('my_file.bin','rb')
s = file.read(4 + 8)
struct.unpack('IQ',s)
</code></pre>

<p>I get the following error:
unpack requires a string argument of length 16</p>

<p>Why is that ?  I=4 Q=8 IQ=12</p>

<p>btw the following works: </p>

<pre><code>s = file.read(4)
struct.unpack('I',s)
s = file.read(8)
struct.unpack('Q',s)
</code></pre>