bitdancer  committed 1be426a

#11780: document that email.encoders throw TypeError on multipart messages.

  • Participants
  • Parent commits 1a740ea
  • Branches 3.2

Comments (0)

Files changed (1)

File Doc/library/email.encoders.rst Modified

View file
  • Ignore whitespace
  • Hide word diff
 payload, encode it, and reset the payload to this newly encoded value.  They
 should also set the :mailheader:`Content-Transfer-Encoding` header as appropriate.
+Note that these functions are not meaningful for a multipart message.  They
+must be applied to individual subparts instead, and will throw a
+:exc:`TypeError` if passed a message whose type is multipart.
 Here are the encoding functions provided: