Return a new set which is the intersection of ``self`` and ``other``. Returns the same Set type as this set.
(self, other)
| 165 | return obj |
| 166 | |
| 167 | def intersection(self, other): |
| 168 | """Return a new set which is the intersection of ``self`` and |
| 169 | ``other``. |
| 170 | |
| 171 | Returns the same Set type as this set. |
| 172 | """ |
| 173 | |
| 174 | obj = self._clone() |
| 175 | obj.intersection_update(other) |
| 176 | return obj |
| 177 | |
| 178 | def difference(self, other): |
| 179 | """Return a new set which ``self`` - ``other``, i.e. the items |
no test coverage detected