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