diff options
author | Raymond Hettinger <python@rcn.com> | 2002-08-24 07:33:06 (GMT) |
---|---|---|
committer | Raymond Hettinger <python@rcn.com> | 2002-08-24 07:33:06 (GMT) |
commit | e87ab3fefed00618992f5fe60a95ec9487e6303f (patch) | |
tree | 60598399122a01dffbe0134621b368aa54253eaf /Lib/test | |
parent | bf935fde1550b768d9fb14cec230d1e79a5212c2 (diff) | |
download | cpython-e87ab3fefed00618992f5fe60a95ec9487e6303f.zip cpython-e87ab3fefed00618992f5fe60a95ec9487e6303f.tar.gz cpython-e87ab3fefed00618992f5fe60a95ec9487e6303f.tar.bz2 |
Removed < <= > >= from the API. Implemented as comparisons of the
underlying dictionaries, there were no reasonable use cases (lexicographic
sorting of a list of sets is somewhat esoteric). Frees the operators
for other uses (such as strict subset and superset comparisons).
Updated documentation and test suite accordingly.
Diffstat (limited to 'Lib/test')
-rw-r--r-- | Lib/test/test_sets.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Lib/test/test_sets.py b/Lib/test/test_sets.py index 9ff98a6..65b48e2 100644 --- a/Lib/test/test_sets.py +++ b/Lib/test/test_sets.py @@ -419,12 +419,12 @@ class TestOnlySetsInBinaryOps(unittest.TestCase): def test_cmp(self): try: - self.other < self.set + self.other == self.set assert 0, "Comparison with non-set on left" except TypeError: pass try: - self.set >= self.other + self.set != self.other assert 0, "Comparison with non-set on right" except TypeError: pass |