Message134715
To repeat concisely what I said on pydev list, I think Reference 5.9. Comparisons, which says
"Tuples and lists are compared lexicographically using comparison of corresponding elements. This means that to compare equal, each element must compare equal and the two sequences must be of the same type and have the same length.".
needs 'be indentical or ' added before 'compare equal and ...'
"Mappings (dictionaries) compare equal if and only if they have the same (key, value) pairs."
may be ok, depending on how one interprets 'same (key, value) pairs'.
Alexander has opened a separate issue to change behavior in 3.3. |
|
Date |
User |
Action |
Args |
2011-04-28 19:30:32 | terry.reedy | set | recipients:
+ terry.reedy, rhettinger, mark.dickinson, ncoghlan, belopolsky, v+python, docs@python |
2011-04-28 19:30:32 | terry.reedy | set | messageid: <1304019032.11.0.216492727708.issue11945@psf.upfronthosting.co.za> |
2011-04-28 19:30:31 | terry.reedy | link | issue11945 messages |
2011-04-28 19:30:31 | terry.reedy | create | |
|