title: Remove dictionary from list
body: <p>If I have a list of dictionaries, say:</p>
  
  <pre><code>[{'id': 1, 'name': 'paul'},
   {'id': 2, 'name': 'john'}]
  </code></pre>
  
  <p>and I would like to remove the dictionary with <code>id</code> of 2 (or name <code>'john'</code>), what is the most efficient way to go about this programmatically (that is to say, I don't know the index of the entry in the list so it can't simply be popped).</p>