An Attachment object is largely interchangeable with a (filename, payload)
tuple.
Note:
The behavior is a bit asymmetric with respect to unpacking and equality
comparison. An Attachment object without a content ID will be equivalent
to a (filename, payload) tuple. An Attachment with a content ID will
unpack to a (filename, payload) tuple, but will compare unequally to
that tuple.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2022-09-30 UTC."],[[["The `Attachment` object in `google.appengine.api.mail` is used to represent email attachments, and it can be initialized with a filename and payload, and optionally a content ID."],["An `Attachment` object without a content ID is equivalent to a `(filename, payload)` tuple, whereas one with a content ID will unpack to that tuple but compare unequally to it."],["The `Attachment` object provides methods for comparison (`__eq__`, `__ne__`), iteration (`__iter__`), length (`__len__`), item access (`__getitem__`), and containment checks (`__contains__`)."],["`Attachment` objects contain three attributes : `filename`, which is the attachment name, `payload`, which is the attachment data, and `content_id`, which is optional and the content ID for the attachment."]]],[]]