MCPcopy Create free account
hub / github.com/rthalley/dnspython / issubset

Method issubset

dns/set.py:276–287  ·  view source on GitHub ↗

Is this set a subset of *other*? Returns a ``bool``.

(self, other)

Source from the content-addressed store, hash-verified

274 del self.items[self[i]]
275
276 def issubset(self, other):
277 """Is this set a subset of *other*?
278
279 Returns a ``bool``.
280 """
281
282 if not isinstance(other, Set):
283 raise ValueError("other must be a Set instance")
284 for item in self.items:
285 if item not in other.items:
286 return False
287 return True
288
289 def issuperset(self, other):
290 """Is this set a superset of *other*?

Callers 7

testSubset1Method · 0.80
testSubset2Method · 0.80
testSubset3Method · 0.80
testSubset4Method · 0.80
testSubset5Method · 0.80
testSubset6Method · 0.80
testBadSubsetSupersetMethod · 0.80

Calls

no outgoing calls

Tested by 7

testSubset1Method · 0.64
testSubset2Method · 0.64
testSubset3Method · 0.64
testSubset4Method · 0.64
testSubset5Method · 0.64
testSubset6Method · 0.64
testBadSubsetSupersetMethod · 0.64