[Tutor] Best Known Method for Filtering redundant list items.

Chris Hengge pyro9219 at gmail.com
Thu Nov 30 21:51:02 CET 2006


Anyone point me to something more efficient then

for item in list1:
     if item not in list2:
           list2.append()

This just seems to take a bit a time when there are thousands or dozens of
thousands of records just to filter out the dozen or so copies..

Thanks.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.python.org/pipermail/tutor/attachments/20061130/f57489e4/attachment.html 


More information about the Tutor mailing list