(self, other)
| 324 | self.data.discard(ref(item)) |
| 325 | |
| 326 | def update(self, other): |
| 327 | if self._pending_removals: |
| 328 | self._commit_removals() |
| 329 | if isinstance(other, self.__class__): |
| 330 | self.data.update(other.data) |
| 331 | else: |
| 332 | for element in other: |
| 333 | self.add(element) |
| 334 | |
| 335 | def __ior__(self, other): |
| 336 | self.update(other) |