def __getitem__(self, index):
        """ Gets item @index, also supports list splicing e.g. list[:-1],
            list[3:4], etc.

            -> item @index
        """
        start, stop = None, None
        if isinstance(index, slice):
            start = index.start or 0
            stop = (index.stop or 0) - 1
        if start is not None or stop is not None:
            #: Gets a slice
            return list(map(
                self._loads,
                self._client.lrange(self.key_prefix, start, stop)))
        else:
            #: Gets item at @index
            return self._loads(self._client.lindex(self.key_prefix, index))
def __getitem__ ( self , index ) : start , stop = None , None if isinstance ( index , slice ) : start = index . start or 0 stop = ( index . stop or 0 ) - 1 if start is not None or stop is not None : return list ( map ( self . _loads , self . _client . lrange ( self . key_prefix , start , stop ) ) ) else : return self . _loads ( self . _client . lindex ( self . key_prefix , index ) )
Gets item @index, also supports list splicing e.g. list[:-1],
            list[3:4], etc.

            -> item @index