(fn)
| 1458 | return __iand__ |
| 1459 | |
| 1460 | def symmetric_difference_update(fn): |
| 1461 | def symmetric_difference_update(self, other): |
| 1462 | want, have = self.symmetric_difference(other), set(self) |
| 1463 | remove, add = have - want, want - have |
| 1464 | |
| 1465 | for item in remove: |
| 1466 | self.remove(item) |
| 1467 | for item in add: |
| 1468 | self.add(item) |
| 1469 | |
| 1470 | _tidy(symmetric_difference_update) |
| 1471 | return symmetric_difference_update |
| 1472 | |
| 1473 | def __ixor__(fn): |
| 1474 | def __ixor__(self, other): |
nothing calls this directly
no test coverage detected