Author terry.reedy
Recipients belopolsky, docs@python, mark.dickinson, ncoghlan, rhettinger, terry.reedy, v+python
Date 2011-04-28.19:30:31
SpamBayes Score 0.00179165
Marked as misclassified No
Message-id <1304019032.11.0.216492727708.issue11945@psf.upfronthosting.co.za>
In-reply-to
Content
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.
History
Date User Action Args
2011-04-28 19:30:32terry.reedysetrecipients: + terry.reedy, rhettinger, mark.dickinson, ncoghlan, belopolsky, v+python, docs@python
2011-04-28 19:30:32terry.reedysetmessageid: <1304019032.11.0.216492727708.issue11945@psf.upfronthosting.co.za>
2011-04-28 19:30:31terry.reedylinkissue11945 messages
2011-04-28 19:30:31terry.reedycreate