Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(891)

Side by Side Diff: Doc/library/email.mime.rst

Issue 14843: support define_macros / undef_macros in setup.cfg
Patch Set: Created 1 year ago
Left:
Right:
Use n/p to move between diff chunks; N/P to move between comments. Please Sign in to add in-line comments.
Jump to:
View unified diff | Download patch
« no previous file with comments | « Doc/library/email.message.rst ('k') | Doc/library/email.parser.rst » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 :mod:`email.mime`: Creating email and MIME objects from scratch 1 :mod:`email`: Creating email and MIME objects from scratch
2 --------------------------------------------------------------- 2 ----------------------------------------------------------
3 3
4 .. module:: email.mime 4 .. module:: email.mime
5 :synopsis: Build MIME messages. 5 :synopsis: Build MIME messages.
6 6
7 7
8 Ordinarily, you get a message object structure by passing a file or some text to 8 Ordinarily, you get a message object structure by passing a file or some text to
9 a parser, which parses the text and returns the root message object. However 9 a parser, which parses the text and returns the root message object. However
10 you can also build a complete message structure from scratch, or even individual 10 you can also build a complete message structure from scratch, or even individual
11 :class:`~email.message.Message` objects by hand. In fact, you can also take an 11 :class:`~email.message.Message` objects by hand. In fact, you can also take an
12 existing structure and add new :class:`~email.message.Message` objects, move the m 12 existing structure and add new :class:`~email.message.Message` objects, move the m
(...skipping 167 matching lines...) Expand 10 before | Expand all | Expand 10 after
180 Module: :mod:`email.mime.text` 180 Module: :mod:`email.mime.text`
181 181
182 A subclass of :class:`~email.mime.nonmultipart.MIMENonMultipart`, the 182 A subclass of :class:`~email.mime.nonmultipart.MIMENonMultipart`, the
183 :class:`MIMEText` class is used to create MIME objects of major type 183 :class:`MIMEText` class is used to create MIME objects of major type
184 :mimetype:`text`. *_text* is the string for the payload. *_subtype* is the 184 :mimetype:`text`. *_text* is the string for the payload. *_subtype* is the
185 minor type and defaults to :mimetype:`plain`. *_charset* is the character 185 minor type and defaults to :mimetype:`plain`. *_charset* is the character
186 set of the text and is passed as a parameter to the 186 set of the text and is passed as a parameter to the
187 :class:`~email.mime.nonmultipart.MIMENonMultipart` constructor; it defaults 187 :class:`~email.mime.nonmultipart.MIMENonMultipart` constructor; it defaults
188 to ``us-ascii`` if the string contains only ``ascii`` codepoints, and 188 to ``us-ascii`` if the string contains only ``ascii`` codepoints, and
189 ``utf-8`` otherwise. 189 ``utf-8`` otherwise.
OLDNEW
« no previous file with comments | « Doc/library/email.message.rst ('k') | Doc/library/email.parser.rst » ('j') | no next file with comments »

RSS Feeds Recent Issues | This issue
This is Rietveld cbc36f91f3f7