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

Method f

Lib/test/test_set.py:132–134  ·  view source on GitHub ↗

Pure python equivalent of isdisjoint()

(s1, s2)

Source from the content-addressed store, hash-verified

130
131 def test_isdisjoint(self):
132 def f(s1, s2):
133 'Pure python equivalent of isdisjoint()'
134 return not set(s1).intersection(s2)
135 for larg in '', 'a', 'ab', 'abc', 'ababac', 'cdc', 'cc', 'efgfe', 'ccb', 'ef':
136 s1 = self.thetype(larg)
137 for rarg in '', 'a', 'ab', 'abc', 'ababac', 'cdc', 'cc', 'efgfe', 'ccb', 'ef':

Callers

nothing calls this directly

Calls 2

setFunction · 0.85
intersectionMethod · 0.45

Tested by

no test coverage detected