If x and y are both lists (or tuples), is the expression (x == y) true if and only if len(x) = len(y) and all of the corresponding elements in x and y are the same? I did not see this behavior documented in "Python Essential Reference", but it makes sense and agrees with a few experiments I did.