test for list equality

Ian Kelly ian.g.kelly at gmail.com
Thu Dec 15 13:28:21 EST 2011


On Thu, Dec 15, 2011 at 11:07 AM, noydb <jenn.duerr at gmail.com> wrote:
> Ahh, I see (on the sort issue), thanks All!
>
> Still, any other slicker ways to do this?  Just for learning.

MRAB's collections.Counter suggestion is what I would do.  Very tidy,
and also more efficient I think: O(n) instead of O(n log n).



More information about the Python-list mailing list