title: How to get hex string from signed integer
body: <p>Say I have the classic 4-byte signed integer, and I want something like</p>
  <pre><code>print hex(-1)
  </code></pre>
  <p>to give me something like</p>
  <blockquote>
  <p>0xffffffff</p>
  </blockquote>
  <p>In reality, the above gives me <code>-0x1</code>. I'm dawdling about in some lower level language, and python commandline is quick n easy.</p>
  <p>So.. is there a way to do it?</p>