equal
deleted
inserted
replaced
193 return other[:] + ([self._item] * self._size) |
193 return other[:] + ([self._item] * self._size) |
194 def __eq__(self, other): |
194 def __eq__(self, other): |
195 if isinstance(other, RepeatList): |
195 if isinstance(other, RepeatList): |
196 return other._size == self._size and other._item == self._item |
196 return other._size == self._size and other._item == self._item |
197 return self[:] == other |
197 return self[:] == other |
|
198 # py3k future warning "Overriding __eq__ blocks inheritance of __hash__ in 3.x" |
|
199 # is annoying but won't go away because we don't want to hash() the repeatlist |
198 def pop(self, i): |
200 def pop(self, i): |
199 self._size -= 1 |
201 self._size -= 1 |
200 |
202 |
201 |
203 |
202 class UStringIO(list): |
204 class UStringIO(list): |