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

Method symmetric_difference

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

Source from the content-addressed store, hash-verified

120 return self.data == set(map(ref, other))
121
122 def symmetric_difference(self, other):
123 newset = self.copy()
124 newset.symmetric_difference_update(other)
125 return newset
126 __xor__ = symmetric_difference
127
128 def symmetric_difference_update(self, other):

Callers 7

test_xorMethod · 0.80
test_xorMethod · 0.80
test_sym_differenceMethod · 0.80
test_getgroupsMethod · 0.80

Calls 2

copyMethod · 0.95

Tested by 7

test_xorMethod · 0.64
test_xorMethod · 0.64
test_sym_differenceMethod · 0.64
test_getgroupsMethod · 0.64