This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author terry.reedy
Recipients belopolsky, docs@python, stutzbach, terry.reedy
Date 2010-07-04.04:20:06
SpamBayes Score 5.5521514e-06
Marked as misclassified No
Message-id <1278217209.54.0.182052664306.issue9132@psf.upfronthosting.co.za>
In-reply-to
Content
The RefMan section is 5.9. Comparisons. The 3.x docs are by design pretty much free of 2.x references. Which is to say, they are a fresh start with 3.0 as the base. So I would also remove footnote 5. Footnote 4 is currently needed because the text suggests something that is not true. Instead fix the text and remove 4.


 I verified both behavior claims with 3.1:
>>> d1 = {1+1j: 2, 1+2j: 3}
>>> d2 = {1+1j: 2, 1+2j: 3}
>>> d1 == d2
True
>>> d1 < d2
Traceback (most recent call last):
  File "<pyshell#14>", line 1, in <module>
    d1 < d2
TypeError: unorderable types: dict() < dict()

PATCH suggestion: Replace the current entry with

"Mappings (dictionaries) compare equal if and only if they have the same key, value) pairs. Order comparision raise TypeError."

Remove footnotes 4 and 5.

"Comparisons other than equality testing raise a TypeError."
is not quite correct because 'comparisons' include 'is' and 'in' which do work as expected.
History
Date User Action Args
2010-07-04 04:20:09terry.reedysetrecipients: + terry.reedy, belopolsky, stutzbach, docs@python
2010-07-04 04:20:09terry.reedysetmessageid: <1278217209.54.0.182052664306.issue9132@psf.upfronthosting.co.za>
2010-07-04 04:20:07terry.reedylinkissue9132 messages
2010-07-04 04:20:06terry.reedycreate