(self,other)
| 33 | res.append(item) |
| 34 | return Container(res) |
| 35 | def __or__(self,other): # Union |
| 36 | self.union = operator.or_ |
| 37 | res = self.value[:] |
| 38 | for item in other: |
| 39 | if item not in res: |
| 40 | res.append(item) |
| 41 | return Container(res) |
| 42 | def insideout(self,other): # !=Intersection != Union item only in x but not in y |
| 43 | res = [] |
| 44 | for item in self.switch: |