utils.py
branchstable
changeset 9279 0814b9dd9bf3
parent 9232 430a7dc5e2cf
child 9523 cd5738fc440f
equal deleted inserted replaced
9278:a7894d5f00bb 9279:0814b9dd9bf3
   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):