[Patches] [ python-Patches-720468 ] nntplib file output for multiline commands

SourceForge.net noreply@sourceforge.net
Fri, 18 Apr 2003 08:07:54 -0700


Patches item #720468, was opened at 2003-04-13 00:34
Message generated for change (Settings changed) made by tcarroll
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=305470&aid=720468&group_id=5470

Category: Library (Lib)
Group: Python 2.3
Status: Open
Resolution: None
Priority: 5
Submitted By: Terry Carroll (tcarroll)
>Assigned to: Guido van Rossum (gvanrossum)
Summary: nntplib file output for multiline commands

Initial Comment:
This patch extends the support for file output,
currently supported only for the body() method (added
by Travers Naran in patch 462628) to all the other
methods that invoke NNTP commands that produce
multiline output; in particular: newgroups(),
newnews(), list(), help(), xhdr(), xgtitle() and xover().

Many of these commands, especially list(), newgroups()
and xhdr(), produce a large amount of output, and
requiring that the output be maintained in memory, as
in the present implementation, may impair performance
of the application or the entire system, in
limited-resource configurations.  Routing the output to
a file avoids this (and, if the file object is actually
a subclass of the file class, the programmer can supply
a write method that processes the NNTP command output
as it is produced).

The file parameter added by this patch is consistent
with its present use in the body() method, specifying
either a string containing a file name, or an open file
object.

----------------------------------------------------------------------

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=305470&aid=720468&group_id=5470