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

Method difference

dns/set.py:178–187  ·  view source on GitHub ↗

Return a new set which ``self`` - ``other``, i.e. the items in ``self`` which are not also in ``other``. Returns the same Set type as this set.

(self, other)

Source from the content-addressed store, hash-verified

176 return obj
177
178 def difference(self, other):
179 """Return a new set which ``self`` - ``other``, i.e. the items
180 in ``self`` which are not also in ``other``.
181
182 Returns the same Set type as this set.
183 """
184
185 obj = self._clone()
186 obj.difference_update(other)
187 return obj
188
189 def symmetric_difference(self, other):
190 """Return a new set which (``self`` - ``other``) | (``other``

Callers 2

__sub__Method · 0.95
_deleteMethod · 0.45

Calls 2

_cloneMethod · 0.95
difference_updateMethod · 0.80

Tested by

no test coverage detected