best way to compare contents of 2 lists?

Esmail ebonak at
Fri Apr 24 12:46:10 CEST 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