def __getslice__(self, start, end):
        """ Get a slice of items.

        >>> kvl = KeyValueList([('red', 'rose'), ('blue', 'sea'),
        ... ('green', 'grass'), ('blue', 'sky')])
        >>> kvl[1:3]
        KeyValueList([('blue', 'sea'), ('green', 'grass')])

        """
        try:
            return KeyValueList(list.__getslice__(self, start, end))
        except __HOLE__:
            return KeyValueList(list.__getitem__(self, slice(start, end)))
dataset/ETHPy150Open nigelsmall/httpstream/httpstream/kvlist.py/KeyValueList.__getslice__