(self, last=True)
| 42 | curr = curr[1] |
| 43 | |
| 44 | def pop(self, last=True): |
| 45 | if not self: |
| 46 | raise KeyError('set is empty') |
| 47 | key = self.end[1][0] if last else self.end[2][0] |
| 48 | self.discard(key) |
| 49 | return key |
| 50 | |
| 51 | def __repr__(self): |
| 52 | if not self: |
no test coverage detected