MCPcopy Index your code
hub / github.com/python/cpython / isdisjoint

Method isdisjoint

Lib/_weakrefset.py:141–142  ·  view source on GitHub ↗
(self, other)

Source from the content-addressed store, hash-verified

139 __or__ = union
140
141 def isdisjoint(self, other):
142 return len(self.intersection(other)) == 0
143
144 def __repr__(self):
145 return repr(self.data)

Callers 15

__new__Method · 0.45
_ftstring_helperMethod · 0.45
addr_specMethod · 0.45
__str__Method · 0.45
__str__Method · 0.45
_refold_parse_treeFunction · 0.45
test_isdisjointMethod · 0.45
assert_ne_subtestMethod · 0.45
test_isdisjoint_SetMethod · 0.45
_test_set_comparisonsMethod · 0.45

Calls 1

intersectionMethod · 0.95

Tested by 14

test_isdisjointMethod · 0.36
assert_ne_subtestMethod · 0.36
test_isdisjoint_SetMethod · 0.36
_test_set_comparisonsMethod · 0.36
test_isdisjointMethod · 0.36
test_self_isdisjointMethod · 0.36
test_empty_isdisjointMethod · 0.36
test_isdisjoint_emptyMethod · 0.36