parameters: (self)
docstring: Return an iterator over all immediate subparts of a multipart.
  
          Return an empty iterator for a non-multipart.
docstring_summary: Return an iterator over all immediate subparts of a multipart.
docstring_tokens: Return an iterator over all immediate subparts of a multipart .
function: def iter_parts(self):
          """Return an iterator over all immediate subparts of a multipart.
  
          Return an empty iterator for a non-multipart.
          """
          if self.get_content_maintype() == 'multipart':
              yield from self.get_payload()
function_tokens: def iter_parts ( self ) : if self . get_content_maintype ( ) == 'multipart' : yield from self . get_payload ( )