From: Guido van Rossum Date: Mon, 1 Oct 2001 13:50:15 +0000 (+0000) Subject: Docs for SF patch #462628 X-Git-Tag: v2.2.1c1~1521 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=e7877df595b4893a5eda43470d091bd02868c397;p=thirdparty%2FPython%2Fcpython.git Docs for SF patch #462628 --- diff --git a/Doc/lib/libnntplib.tex b/Doc/lib/libnntplib.tex index 011524ba91c5..bf26b7d609bf 100644 --- a/Doc/lib/libnntplib.tex +++ b/Doc/lib/libnntplib.tex @@ -197,9 +197,15 @@ and \var{list} is a list of the article's headers (an uninterpreted list of lines, without trailing newlines). \end{methoddesc} -\begin{methoddesc}{body}{id} +\begin{methoddesc}{body}{id,\optional{fileHandle}} Send a \samp{BODY} command, where \var{id} has the same meaning as for -\method{stat()}. Return as for \method{head()}. +\method{stat()}. If the \var{fileHandle} parameter is supplied, then +the body is stored in a file. If \var{fileHandle} is a string, then +the method will open a file object with that name, write to it then close it. +If \var{fileHandle} is a file object, then it will start calling +\method{write()} on it to store the lines of the body. +Return as for \method{head()}. If \var{fileHandle} is supplied. Then +the returned \var{list} is an empty list. \end{methoddesc} \begin{methoddesc}{article}{id}