Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
cpython
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
cpython
Commits
e6417845
Commit
e6417845
authored
Mar 11, 2003
by
Barry Warsaw
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
body_line_iterator() now takes a decode argument.
parent
255ce136
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
1 deletion
+3
-1
Doc/lib/emailiter.tex
Doc/lib/emailiter.tex
+3
-1
No files found.
Doc/lib/emailiter.tex
View file @
e6417845
...
...
@@ -6,13 +6,15 @@ Iterating over a message object tree is fairly easy with the
provides some useful higher level iterations over message object
trees.
\begin{funcdesc}
{
body
_
line
_
iterator
}{
msg
}
\begin{funcdesc}
{
body
_
line
_
iterator
}{
msg
\optional
{
, decode
}
}
This iterates over all the payloads in all the subparts of
\var
{
msg
}
,
returning the string payloads line-by-line. It skips over all the
subpart headers, and it skips over any subpart with a payload that
isn't a Python string. This is somewhat equivalent to reading the
flat text representation of the message from a file using
\method
{
readline()
}
, skipping over all the intervening headers.
Optional
\var
{
decode
}
is passed through to
\method
{
Message.get
_
payload()
}
.
\end{funcdesc}
\begin{funcdesc}
{
typed
_
subpart
_
iterator
}{
msg
\optional
{
,
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment