(self, key)
If the keyed message exists, remove it.
If the keyed message exists, remove it.
If the keyed message exists remove it .
def discard(self, key):
        """If the keyed message exists, remove it."""
        try:
            self.remove(key)
        except KeyError:
            pass
def discard ( self , key ) : try : self . remove ( key ) except KeyError : pass