class sliceable_deque(collections.deque):

    def __getitem__(self, index):
        if isinstance(index, slice):
            return type(self)(itertools.islice(self, index.start, index.
                stop, index.step))
return collections.deque.__getitem__(self, index)
Как нарезать деку?