(self, last=True)
| 64 | curr = curr[1] |
| 65 | |
| 66 | def pop(self, last=True): |
| 67 | if not self: |
| 68 | raise KeyError("set is empty") |
| 69 | key = self.end[1][0] if last else self.end[2][0] |
| 70 | self.discard(key) |
| 71 | return key |
| 72 | |
| 73 | def __repr__(self): |
| 74 | if not self: |
no test coverage detected