def __getitem__(self, key):
        "x.__getitem__(y) <==> x[y]"
        _key = self._prepare_key(key)
        prefix, node = self._get_node_by_key(_key)
        if prefix==_key and node.value is not None:
            return self._unpickle_value(node.value)
        else:
            raise KeyError(key)
def __getitem__ ( self , key ) : _key = self . _prepare_key ( key ) prefix , node = self . _get_node_by_key ( _key ) if prefix == _key and node . value is not None : return self . _unpickle_value ( node . value ) else : raise KeyError ( key )
x.__getitem__(y) <==> x[y]