Staging: this is not the live site, pydocs.org.
Generates output from a Message object tree.
This basic generator writes the message to the given file object as plain
text.
Changed in 3.3, 3.6
- 3.3: Added the policy keyword.
- 3.6: The default behavior of the mangle_from_ and maxheaderlen parameters is to follow the policy.
Members of Generator
c
- clone
- Clone this generator with the exact same options.
f
- flatten
- Print the message object tree rooted at msg to the output file specified when the Generator instance was created.
w
- write
- Write s to the write method of the outfp passed to the Generator’s constructor.