title: copy 3 byte char to int
body: <p>I have a byte stream with 3 bytes that I have to cast into an unsigned int 32. In C I would just use bzero to zero out the memory region of my integer and then copy the memory from the stream, something like</p>
  
  <pre><code>char* stream = ...;
  Uint32 myInt;
  bzero(myInt,4);
  memcopy(myInt, stream[0], stream[3])
  </code></pre>
  
  <p><strong>Question:</strong></p>
  
  <p>How would I do this in Python?</p>
  
  <p>Cheers</p>