Return a new set which ``self`` - ``other``, i.e. the items in ``self`` which are not also in ``other``. Returns the same Set type as this set.
(self, other)
| 176 | return obj |
| 177 | |
| 178 | def difference(self, other): |
| 179 | """Return a new set which ``self`` - ``other``, i.e. the items |
| 180 | in ``self`` which are not also in ``other``. |
| 181 | |
| 182 | Returns the same Set type as this set. |
| 183 | """ |
| 184 | |
| 185 | obj = self._clone() |
| 186 | obj.difference_update(other) |
| 187 | return obj |
| 188 | |
| 189 | def symmetric_difference(self, other): |
| 190 | """Return a new set which (``self`` - ``other``) | (``other`` |
no test coverage detected