
May 9, 2009
5:39 p.m.
On Sat, 9 May 2009 11:53:42 pm MRAB wrote:
There's also the question of whether the order is significant. Does a == b if a and b contain exactly the same items, but in a different order? If they are lists, then yes; if they are multisets, then no.
I'm afraid you have made a mistake. List equality does not ignore order.
[1, 2, 3] == [2, 1, 3] False
-- Steven D'Aprano