I'm dealing with bigger lists than I have been, and noticed this is getting 
really slow.  Is there a faster way to do this?

for x in list1:
    if x not in list2:
        list3.append(x)

My search is taking up to 5 minutes to complete.


__________________________________________________
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 
_______________________________________________
Tutor maillist  -  Tutor@python.org
To unsubscribe or change subscription options:
http://mail.python.org/mailman/listinfo/tutor

Reply via email to