Message109206
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. |
|
Date |
User |
Action |
Args |
2010-07-04 04:20:09 | terry.reedy | set | recipients:
+ terry.reedy, belopolsky, stutzbach, docs@python |
2010-07-04 04:20:09 | terry.reedy | set | messageid: <1278217209.54.0.182052664306.issue9132@psf.upfronthosting.co.za> |
2010-07-04 04:20:07 | terry.reedy | link | issue9132 messages |
2010-07-04 04:20:06 | terry.reedy | create | |
|