(self, attachment_or_attachments)
Adds one or a list of attachments to the message.

        :param attachment_or_attachments: one or an iterable of attachments
Adds one or a list of attachments to the message.
Adds one or a list of attachments to the message .
def attach(self, attachment_or_attachments):
        """Adds one or a list of attachments to the message.

        :param attachment_or_attachments: one or an iterable of attachments
        """
        try:
            attachments = iter(attachment_or_attachments)
        except TypeError:
            attachments = [attachment_or_attachments]
        self.attachments.extend(attachments)
def attach ( self , attachment_or_attachments ) : try : attachments = iter ( attachment_or_attachments ) except TypeError : attachments = [ attachment_or_attachments ] self . attachments . extend ( attachments )