title: Why doesn't [[]] == list(list())
body: <p>I just randomly observed the following in Python and am curious to know the reason why this evaluates to <code>False</code>:</p>
  <pre class="lang-py prettyprint-override"><code>list(list()) == [[]]
  </code></pre>
  <p>Interestingly if you rearrange the syntax in the following ways, the first way evaluates as <code>False</code>, but the second as <code>True</code>:</p>
  <pre class="lang-py prettyprint-override"><code>list([]) == [[]]
  [list()] == [[]]
  </code></pre>
  <p>What is going on under the hood here?</p>