title: Is it wrong to use the "==" operator when comparing to an empty list?
body: <p>PyCharm (4.0.6) complains when I do a comparison to an empty list using the <code>==</code> operator, but it doesn't when I use the <code>is</code> operator:</p>
  
  <p><img src="https://i.stack.imgur.com/Buq3o.png" alt="enter image description here"></p>
  
  <p>I guess this is something related to PEP 8, but the problem is that when I use the <code>is</code> operator, as PyCharm suggests, I have a false negative. Here is a simple example in iPython shell to show that in this case the <code>==</code> operator seems more appropriate, since the <code>is</code> operator returns a false negative:</p>
  
  <pre><code>In[2]: actions = []
  In[3]: actions == []
  Out[3]: True
  In[4]: actions is []
  Out[4]: False
  </code></pre>
  
  <p>Could someone please explain why PyCharm complains about the <code>==</code> operator when comparing to an empty lists? Am I doing something wrong according to PEP 8?</p>