def remove ( self , entry ) : try : list = self . cache [ entry . key ] list . remove ( entry ) except : pass
how to clear an entry in python
Removes an entry
def remove(self, entry):
        """Removes an entry"""
        try:
            list = self.cache[entry.key]
            list.remove(entry)
        except:
            pass