summaryrefslogtreecommitdiffstats
path: root/Lib/_abcoll.py
diff options
context:
space:
mode:
Diffstat (limited to 'Lib/_abcoll.py')
-rw-r--r--Lib/_abcoll.py6
1 files changed, 6 insertions, 0 deletions
diff --git a/Lib/_abcoll.py b/Lib/_abcoll.py
index ac967b2..3a84b96 100644
--- a/Lib/_abcoll.py
+++ b/Lib/_abcoll.py
@@ -177,6 +177,12 @@ class Set:
return NotImplemented
return self._from_iterable(value for value in other if value in self)
+ def isdisjoint(self, other):
+ for value in other:
+ if value in self:
+ return False
+ return True
+
def __or__(self, other):
if not isinstance(other, Iterable):
return NotImplemented