summaryrefslogtreecommitdiffstats
path: root/Lib/_abcoll.py
diff options
context:
space:
mode:
authorAndrew Svetlov <andrew.svetlov@gmail.com>2012-11-01 11:28:54 (GMT)
committerAndrew Svetlov <andrew.svetlov@gmail.com>2012-11-01 11:28:54 (GMT)
commitbcac6ad1f3776fed63ce5de57b6182352efcb2ca (patch)
treed9fe5972998c97d51b7eabfd645c9ac37c84474a /Lib/_abcoll.py
parenteda1f4cf07557f030a33130c5845f3cdca8e2fba (diff)
downloadcpython-bcac6ad1f3776fed63ce5de57b6182352efcb2ca.zip
cpython-bcac6ad1f3776fed63ce5de57b6182352efcb2ca.tar.gz
cpython-bcac6ad1f3776fed63ce5de57b6182352efcb2ca.tar.bz2
Issue #16373: Prevent infinite recursion for ABC Set class operations.
Diffstat (limited to 'Lib/_abcoll.py')
-rw-r--r--Lib/_abcoll.py4
1 files changed, 2 insertions, 2 deletions
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 @@ class Set(Sized, Iterable, Container):
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):