parameters: (self, key, default=None)
return_statement: return result
docstring: Delete the keyed message and return it, or default.
docstring_summary: Delete the keyed message and return it, or default.
docstring_tokens: Delete the keyed message and return it or default .
function: def pop(self, key, default=None):
          """Delete the keyed message and return it, or default."""
          try:
              result = self[key]
          except KeyError:
              return default
          self.discard(key)
          return result
function_tokens: def pop ( self , key , default = None ) : try : result = self [ key ] except KeyError : return default self . discard ( key ) return result