title: How to modify python collections by filtering in-place?
body: <p>I was wondering, if there is way in Python to modify collections without creating new ones. E.g.:</p>
  
  <pre><code>lst = [1, 2, 3, 4, 5, 6]
  new_lst = [i for i in lst if i &gt; 3]
  </code></pre>
  
  <p>Works just fine, but a new collection is created. Is there a reason, that Python collections lack a <code>filter()</code> method (or similar) that would modify the collection object in place?</p>