parameters: (self)
docstring: Walk over the message tree, yielding each subpart.
  
      The walk is performed in depth-first order.  This method is a
      generator.
docstring_summary: Walk over the message tree, yielding each subpart.
docstring_tokens: Walk over the message tree yielding each subpart .
function: def walk(self):
      """Walk over the message tree, yielding each subpart.
  
      The walk is performed in depth-first order.  This method is a
      generator.
      """
      yield self
      if self.is_multipart():
          for subpart in self.get_payload():
              for subsubpart in subpart.walk():
                  yield subsubpart
function_tokens: def walk ( self ) : yield self if self . is_multipart ( ) : for subpart in self . get_payload ( ) : for subsubpart in subpart . walk ( ) : yield subsubpart