title: Is there any XOR bit reduction operand or function?
body: <p>Is there any XOR bit reduction operand or function in python? I have no problem to write it by yourself, but there's no reason to write it in every script if there's already built-in.</p>
  
  <pre><code>r=x&amp;1
  for i in xrange(1,63):
      r=r^((x&gt;&gt;i)&amp;1)
  </code></pre>