Issue #16373: Prevent infinite recursion for ABC Set class operations.
diff --git a/Lib/_abcoll.py b/Lib/_abcoll.py
index 2417d18..5ddcea3 100644
--- a/Lib/_abcoll.py
+++ b/Lib/_abcoll.py
@@ -184,12 +184,12 @@
def __gt__(self, other):
if not isinstance(other, Set):
return NotImplemented
- return other < self
+ return other.__lt__(self)
def __ge__(self, other):
if not isinstance(other, Set):
return NotImplemented
- return other <= self
+ return other.__le__(self)
def __eq__(self, other):
if not isinstance(other, Set):