summaryrefslogtreecommitdiffstats
path: root/Lib/sets.py
diff options
context:
space:
mode:
Diffstat (limited to 'Lib/sets.py')
-rw-r--r--Lib/sets.py19
1 files changed, 1 insertions, 18 deletions
diff --git a/Lib/sets.py b/Lib/sets.py
index 09d9918..d422591 100644
--- a/Lib/sets.py
+++ b/Lib/sets.py
@@ -102,16 +102,7 @@ class BaseSet(object):
"""
return self._data.iterkeys()
- # Comparisons. Ordering is determined by the ordering of the
- # underlying dicts (which is consistent though unpredictable).
-
- def __lt__(self, other):
- self._binary_sanity_check(other)
- return self._data < other._data
-
- def __le__(self, other):
- self._binary_sanity_check(other)
- return self._data <= other._data
+ # Equality comparisons using the underlying dicts
def __eq__(self, other):
self._binary_sanity_check(other)
@@ -121,14 +112,6 @@ class BaseSet(object):
self._binary_sanity_check(other)
return self._data != other._data
- def __gt__(self, other):
- self._binary_sanity_check(other)
- return self._data > other._data
-
- def __ge__(self, other):
- self._binary_sanity_check(other)
- return self._data >= other._data
-
# Copying operations
def copy(self):