title: overriding bool() for custom class
body: <p>All I want is for bool(myInstance) to return False (and for myInstance to evaluate to False when in a conditional like if/or/and. I know how to override >, &lt;, =)</p>
  
  <p>I've tried this:</p>
  
  <pre><code>class test:
      def __bool__(self):
          return False
  
  myInst = test()
  print bool(myInst) #prints "True"
  print myInst.__bool__() #prints "False"
  </code></pre>
  
  <p>Any suggestions?</p>
  
  <p>(I am using Python 2.6)</p>