def __getitem__(self, index):
        try:
            return deque.__getitem__(self, index)
        except TypeError:
            return type(self)(islice(self, index.start, index.stop, index.step))
Support slices.
dataset/ETHPy150Open klen/graphite-beacon/graphite_beacon/alerts.py/sliceable_deque.__getitem__