(self, index)
Fetch the value at position i.
Fetch the value at position i.
Fetch the value at position i .
def __getitem__(self, index):
        """Fetch the value at position i."""
        if isinstance(index, types.SliceType):
            return [self._main[key] for key in self._main._sequence[index]]
        else:
            return self._main[self._main._sequence[index]]
def __getitem__ ( self , index ) : if isinstance ( index , types . SliceType ) : return [ self . _main [ key ] for key in self . _main . _sequence [ index ] ] else : return self . _main [ self . _main . _sequence [ index ] ]