title: Two's Complement Binary in Python?
body: <p>Integers in Python are stored in two's complement, correct?</p>
  
  <p>Although:</p>
  
  <pre><code>&gt;&gt;&gt; x = 5
  &gt;&gt;&gt; bin(x)
  0b101
  </code></pre>
  
  <p>And:</p>
  
  <pre><code>&gt;&gt;&gt; x = -5
  &gt;&gt;&gt; bin(x)
  -0b101
  </code></pre>
  
  <p>That's pretty lame. How do I get python to give me the numbers in REAL binary bits, and without the 0b infront of it? So:</p>
  
  <pre><code>&gt;&gt;&gt; x = 5
  &gt;&gt;&gt; bin(x)
  0101
  &gt;&gt;&gt; y = -5
  &gt;&gt;&gt; bin(y)
  1011
  </code></pre>