(self)
Return an iterator over all immediate subparts of a multipart.

        Return an empty iterator for a non-multipart.
Return an iterator over all immediate subparts of a multipart.
Return an iterator over all immediate subparts of a multipart .
def iter_parts(self):
        """Return an iterator over all immediate subparts of a multipart.

        Return an empty iterator for a non-multipart.
        """
        if self.is_multipart():
            yield from self.get_payload()
def iter_parts ( self ) : if self . is_multipart ( ) : yield from self . get_payload ( )