datasketch/lsh.py
def remove(self, key):
        '''
        Remove the key from the index.

        Args:
            key (hashable): The unique identifier of a set.

        '''
        if self.prepickle:
            key = pickle.dumps(key)
        if key not in self.keys:
            raise ValueError("The given key does not exist")
        for H, hashtable in zip(self.keys[key], self.hashtables):
            hashtable.remove_val(H, key)
            if not hashtable.get(H):
                hashtable.remove(H)
        self.keys.remove(key)
def remove(self, key):
        '''
        Remove the key from the index.

        Args:
            key (hashable): The unique identifier of a set.

        '''
        if self.prepickle:
            key = pickle.dumps(key)
        if key not in self.keys:
            raise ValueError("The given key does not exist")
        for H, hashtable in zip(self.keys[key], self.hashtables):
            hashtable.remove_val(H, key)
            if not hashtable.get(H):
                hashtable.remove(H)
        self.keys.remove(key)
def remove ( self , key ) : if self . prepickle : key = pickle . dumps ( key ) if key not in self . keys : raise ValueError ( "The given key does not exist" ) for H , hashtable in zip ( self . keys [ key ] , self . hashtables ) : hashtable . remove_val ( H , key ) if not hashtable . get ( H ) : hashtable . remove ( H ) self . keys . remove ( key )
Remove the key from the index.

        Args:
            key (hashable): The unique identifier of a set.
Remove the key from the index .