best way to compare contents of 2 lists?

Esmail ebonak at hotmail.com
Sat Apr 25 19:39:09 EDT 2009


norseman wrote:
>
> Of course each method has its time and place of use and Python has some 
> well oiled list search and list maintain routines of its own. List 
> comparisons are most accurate when using presorted ones. (Some things 
> don't lend themselves to sorting very well. Like paragraphs, books, 
> chapters, computer programs, manuals, etc... These need the searchers 
> (equivalent to the Unix diff) for checking equivalence.)
> 
> 
> HTH
> 
> Steve

Thanks Steve for bringing up various items to consider for these sort
of tasks, very helpful indeed.

Best,
Esmail




More information about the Python-list mailing list