Somewhat less sarcastic... I did omg find that answer, and I didn't feel like this was such a unique thing to do that I needed to re-invent the wheel by building several methods to do something that a common library should already have.
<br><br><div><span class="gmail_quote">On 11/30/06, <b class="gmail_sendername">Jordan Greenberg</b> <<a href="mailto:greenbergj@wit.edu">greenbergj@wit.edu</a>> wrote:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Chris Hengge wrote:<br>> Anyone point me to something more efficient then<br>><br>> for item in list1:<br>> if item not in list2:<br>> list2.append()<br>><br>> This just seems to take a bit a time when there are thousands or dozens of
<br>> thousands of records just to filter out the dozen or so copies..<br>><br>> Thanks.<br><br>somewhat unsurprisingly, the first thing google lists for "python list<br>duplicates" is a quite good ASPN recipe to do just what you want.
<br><a href="http://aspn.activestate.com/ASPN/Cookbook/Python/Recipe/52560">http://aspn.activestate.com/ASPN/Cookbook/Python/Recipe/52560</a><br></blockquote></div><br>