(self, other)
| 108 | return self.__class__(self.data[start:end]) |
| 109 | |
| 110 | def __add__(self, other): |
| 111 | if isinstance(other, UserString): |
| 112 | return self.__class__(self.data + other.data) |
| 113 | elif isinstance(other, bytes): |
| 114 | return self.__class__(self.data + other) |
| 115 | else: |
| 116 | return self.__class__(self.data + str(other).encode()) |
| 117 | |
| 118 | def __radd__(self, other): |
| 119 | if isinstance(other, bytes): |