Name
body
Synopsis
n.body(id,file)
id
is a
string, either an article ID enclosed in angle brackets
(<>) or an article number in the current
group. Returns a tuple of three strings and a list
(
response,number,id,list
),
where number is the article number in the
current group, id is the article ID
enclosed in angle brackets, and list is a
list of strings that are the lines in the article’s
body, without end-of-line characters. When
file is not None, it
can be either a string naming a file that head
then opens for writing, or a file object already open for writing. In
either case, body writes the
article’s body to the file, and
list in the tuple it returns is an empty
list.
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access