(self, other)
| 89 | return '%s(%r)' % (self.__class__.__name__, list(self)) |
| 90 | |
| 91 | def __eq__(self, other): |
| 92 | if isinstance(other, OrderedSet): |
| 93 | return len(self) == len(other) and list(self) == list(other) |
| 94 | return set(self) == set(other) |
| 95 | |
| 96 | |
| 97 | class OrderedSetQueue(Queue.Queue): |