MCPcopy Create free account
hub / github.com/ActiveState/code / outinside

Method outinside

recipes/Python/574428_Container/recipe-574428.py:48–56  ·  view source on GitHub ↗
(self,other)

Source from the content-addressed store, hash-verified

46 res.append(item)
47 return Container(res)
48 def outinside(self,other): # != Union != Intersection item in x and y but not in both
49 res = []
50 for item in self.switch:
51 if item not in other:
52 res.append(item)
53 for item in other:
54 if item not in self.switch:
55 res.append(item)
56 return Container(res)
57 def __str__(self): #Print
58 return '<Container : %s \n<Length : %s' % (self.value,(len(self.switch)))
59

Callers 1

recipe-574428.pyFile · 0.80

Calls 2

ContainerClass · 0.70
appendMethod · 0.45

Tested by

no test coverage detected