mirror of
https://github.com/python/cpython.git
synced 2025-09-26 18:29:57 +00:00
Add documentation about as_string() mangling From_ lines.
This commit is contained in:
parent
05bef930fa
commit
2ec4854f13
1 changed files with 4 additions and 3 deletions
|
@ -37,9 +37,10 @@ Return the entire message flatten as a string. When optional
|
||||||
\var{unixfrom} is \code{True}, the envelope header is included in the
|
\var{unixfrom} is \code{True}, the envelope header is included in the
|
||||||
returned string. \var{unixfrom} defaults to \code{False}.
|
returned string. \var{unixfrom} defaults to \code{False}.
|
||||||
|
|
||||||
Note that this method is provided as a convenience and may not always
|
Note that this method is provided as a convenience and may not always format
|
||||||
format the message the way you want. For more flexibility,
|
the message the way you want. For example, by default it mangels lines that
|
||||||
instantiate a \class{Generator} instance and use its
|
begin with \code{From }. For more flexibility, instantiate a
|
||||||
|
\class{Generator} instance and use its
|
||||||
\method{flatten()} method directly. For example:
|
\method{flatten()} method directly. For example:
|
||||||
|
|
||||||
\begin{verbatim}
|
\begin{verbatim}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue