Tim Peters
e63415ead8
SF patch #421922 : Implement rich comparison for dicts.
...
d1 == d2 and d1 != d2 now work even if the keys and values in d1 and d2
don't support comparisons other than ==, and testing dicts for equality
is faster now (especially when inequality obtains).
2001-05-08 04:38:29 +00:00
Tim Peters
8880f6d3c4
Whitespace normalization.
2001-01-19 06:12:17 +00:00
Guido van Rossum
4e8db2ed9d
Since I'm about to check in a change to the recursion-detection code
...
for comparisons that outlaws requets for ordering on recursive data
structures, remove the tests for ordering recursive data structures.
2001-01-18 21:52:26 +00:00
Guido van Rossum
890f209619
Add test for comparing recursive data types.
2001-01-18 16:21:57 +00:00
Guido van Rossum
9710bd5deb
Add test for misbehaving rich comparisons (always returning 0) --
...
these fall back to __cmp__.
2001-01-18 15:55:59 +00:00
Guido van Rossum
c4a6e8b65a
Rich comparison tests
2001-01-18 15:48:05 +00:00