def __getitem__(self, index):
        """``x.__getitem__(index) <==> x[index]``"""
        item = self.client.lindex(self.name, index)
        if item:
            return item
        raise IndexError("list index out of range")
def __getitem__ ( self , index ) : item = self . client . lindex ( self . name , index ) if item : return item raise IndexError ( "list index out of range" )
``x.__getitem__(index) <==> x[index]``