parameters: (self)
docstring: Delete all messages.
docstring_summary: Delete all messages.
docstring_tokens: Delete all messages .
function: def clear(self):
          """Delete all messages."""
          for key in self.iterkeys():
              self.discard(key)
function_tokens: def clear ( self ) : for key in self . iterkeys ( ) : self . discard ( key )