Is this set a subset of *other*? Returns a ``bool``.
(self, other)
| 274 | del self.items[self[i]] |
| 275 | |
| 276 | def issubset(self, other): |
| 277 | """Is this set a subset of *other*? |
| 278 | |
| 279 | Returns a ``bool``. |
| 280 | """ |
| 281 | |
| 282 | if not isinstance(other, Set): |
| 283 | raise ValueError("other must be a Set instance") |
| 284 | for item in self.items: |
| 285 | if item not in other.items: |
| 286 | return False |
| 287 | return True |
| 288 | |
| 289 | def issuperset(self, other): |
| 290 | """Is this set a superset of *other*? |
no outgoing calls