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

Method intersection

dns/set.py:167–176  ·  view source on GitHub ↗

Return a new set which is the intersection of ``self`` and ``other``. Returns the same Set type as this set.

(self, other)

Source from the content-addressed store, hash-verified

165 return obj
166
167 def intersection(self, other):
168 """Return a new set which is the intersection of ``self`` and
169 ``other``.
170
171 Returns the same Set type as this set.
172 """
173
174 obj = self._clone()
175 obj.intersection_update(other)
176 return obj
177
178 def difference(self, other):
179 """Return a new set which ``self`` - ``other``, i.e. the items

Callers 3

__and__Method · 0.95
_deleteMethod · 0.45

Calls 2

_cloneMethod · 0.95
intersection_updateMethod · 0.45

Tested by

no test coverage detected