best way to compare contents of 2 lists?

Esmail ebonak at hotmail.com
Fri Apr 24 06:46:10 EDT 2009


John Yeung wrote:
>  so does your initial solution,
> which I like best:
> 
>> sorted(a)==sorted(b)
> 
> This is concise, clear, and in my opinion, the most Pythonic.  It may
> well even be the fastest.  

Great .. I can live with that :-)




More information about the Python-list mailing list