title: set of dictionaries in list of dictionarys
body: <p>trying to find a set of dictionaries in a list.</p>
  
  <p>Say I have the following list of dictionaries:</p>
  
  <pre><code>rm_dict = [{'name':'rick','subject':'adventure time mortttty buugh','body':['wubba lubba dub dubbb motha f*&amp;^%!', 'morty get over here!']},
   {'name':'rick','subject':'adventure time mortttty buugh','body':['wubba lubba dub dubbb motha f*&amp;^%!', 'morty get over here!']},
   {'name':'morty','subject':'re:adventure time mortttty buugh','body':['youre drunk rick!', 'I'm going to get mom', 'you always do this']}]
  </code></pre>
  
  <p>trying just <code>set</code>, I get an error.</p>
  
  <pre><code>set(rm_dict)
  </code></pre>
  
  <p>I take the body of the message/email, because that's what I'll use to define as unique, and create a list of the body of all of the emails, and then I will do a generator for <code>set(tuple())</code> etc..</p>
  
  <pre><code>list_of_body = [x['body'] for x in rm_dict]
  &gt;&gt;[['wubba lubba dub dubbb motha f*&amp;^%!'],
    ['wubba lubba dub dubbb motha f*&amp;^%!'],
    ['youre drunk rick!']]
  
  [list(item) for item in set(tuple(row) for row in list_of_body)]
  &gt;&gt;[['wubba lubba dub dubbb motha f*&amp;^%!'], ['youre drunk rick!']]
  </code></pre>
  
  <p>This succeeds in getting me the unique bodies from the <code>list_of_body</code>, but I want the <em>whole</em> dictionary from the original list.</p>