title: Why does this not work as an array membership test?
body: <pre><code>&gt;&gt;&gt; 5 in [1, 2, 3, 4] == False
  False
  </code></pre>
  
  <p>I get that this is a bizarre way to test membership, and that</p>
  
  <pre><code>&gt;&gt;&gt; 5 not in [1, 2, 3, 4]
  True
  </code></pre>
  
  <p>is the "correct" way.  What confuses me is that its behavior is different from both</p>
  
  <pre><code>&gt;&gt;&gt; (5 in [1, 2, 3, 4]) == False
  True
  </code></pre>
  
  <p>and</p>
  
  <pre><code>&gt;&gt;&gt; 5 in ([1, 2, 3, 4] == False)
  TypeError ...
  </code></pre>
  
  <p>Have I missed something obvious?  (Tested in Python 2.7 and Python 3.4).</p>
  
  <p>To clarify, I understand the last three snippets.  I am asking about the behavior of the <strong>first</strong> snippet, and why it is different.</p>