title: Carry bit of python bitwise shift
body: <p>Is there any way to get the bit that is shifted off by a shift operation in Python, like the carry flag in x86 assembly?</p>
  
  <p>I searched both the python manual and the internet, but can't seem to find anything useful.</p>
  
  <p>I need it to check if an integer is odd (CF=1) or even (CF=0) and divide it by two in one command. I know that I can mimic the intended behaviour by:</p>
  
  <pre><code>if x &amp; 1==1: CF=1
  else: CF=0
  </code></pre>
  
  <p>That seems to me as unnecessary coding, or am I expecting to much from python.</p>