What is the most efficient way to compare similar contents in two lists?

Chris Torek nospam at torek.net
Mon Jun 13 14:40:33 EDT 2011


In article <mailman.188.1307988677.11593.python-list at python.org>
Chris Angelico  <rosuav at gmail.com> wrote:
>If order and duplicates matter, then you want a completely different
>diff. I wrote one a while back, but not in Python. ...

If order and duplicates matter, one might want to look into
difflib. :-)
-- 
In-Real-Life: Chris Torek, Wind River Systems
Salt Lake City, UT, USA (40°39.22'N, 111°50.29'W)  +1 801 277 2603
email: gmail (figure it out)      http://web.torek.net/torek/index.html



More information about the Python-list mailing list