def __setslice__(self, i, j, other):
i = max(i, 0); j = max(j, 0)
if isinstance(other, UserList.UserList):
l = other.data
elif isinstance(other, type(self.data)):
l = other
else:
l = list(other)
g = [a for a in l if self._setrecord(a)]
self.data[i:] = g
评论列表
文章目录