title: Convert int to 16 bit unsigned short
body: <p>I want to trim an integer to 16 bit word (unsigned short) in Python. Something like following does not work</p>
  <pre><code>word = array(&quot;H&quot;)
  word.insert(0,0x19c6acc6)
  </code></pre>