testing two lists for equality
beliavsky at aol.com
beliavsky at aol.com
Thu Jun 19 15:40:07 EDT 2003
More information about the Python-list mailing list
Thu Jun 19 15:40:07 EDT 2003
- Previous message (by thread): testing two lists for equality
- Next message (by thread): testing two lists for equality
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
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.
- Previous message (by thread): testing two lists for equality
- Next message (by thread): testing two lists for equality
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
More information about the Python-list mailing list