Best way to compare a list?

Fazer faizan at jaredweb.com
Wed Jan 28 15:42:06 EST 2004


John Hunter <jdhunter at ace.bsd.uchicago.edu> wrote in message news:<mailman.886.1075263140.12720.python-list at python.org>...
> >>>>> "Fazer" == Fazer  <faizan at jaredweb.com> writes:
> 
>     Fazer> Hello, I was wondering which would be the best way to
>     Fazer> compare a list?
> 
>     Fazer> I was thinking of just using a for loop and testing the
>     Fazer> condition.
> 
>     Fazer> What do you guys think?  The best/fastest way of comparing
>     Fazer> lists.
> 
> What do you want to compare for, equality of all elements?  Give a
> little more info about what you need to do.  
> 
> JDH

Sorry about that.  

Basically, I have to lists.  I have to compare them and pick out the difference(s).

Maybe the simple/fast approach would be to use a for loop?

Thanks,



More information about the Python-list mailing list