title: What is the correct way to check for False?
body: <p>Which is better? (and why?)</p>
  <pre><code>if somevalue == False:
  </code></pre>
  <p>or</p>
  <pre><code>if somevalue is False:
  </code></pre>
  <p>Does your answer change if <code>somevalue</code> is a string?</p>