[Python-checkins] CVS: python/dist/src/Doc/lib libnntplib.tex,1.23,1.24
Barry A. Warsaw
bwarsaw@cnri.reston.va.us
Thu, 10 Feb 2000 15:26:47 -0500 (EST)
Update of /projects/cvsroot/python/dist/src/Doc/lib
In directory anthem:/home/bwarsaw/projects/python/Doc/lib
Modified Files:
libnntplib.tex
Log Message:
Document the API changes to the nntplib module (exceptions become
classes, NNTP.__init__() grows a new optional argument to set reader
mode on the server).
Index: libnntplib.tex
===================================================================
RCS file: /projects/cvsroot/python/dist/src/Doc/lib/libnntplib.tex,v
retrieving revision 1.23
retrieving revision 1.24
diff -C2 -r1.23 -r1.24
*** libnntplib.tex 1999/04/22 16:45:26 1.23
--- libnntplib.tex 2000/02/10 20:26:45 1.24
***************
*** 54,58 ****
\begin{classdesc}{NNTP}{host\optional{, port
! \optional{, user\optional{, password}}}}
Return a new instance of the \class{NNTP} class, representing a
connection to the NNTP server running on host \var{host}, listening at
--- 54,59 ----
\begin{classdesc}{NNTP}{host\optional{, port
! \optional{, user\optional{, password
! \optional{, readermode}}}}}
Return a new instance of the \class{NNTP} class, representing a
connection to the NNTP server running on host \var{host}, listening at
***************
*** 60,82 ****
\var{user} and \var{password} are provided, the
\samp{AUTHINFO USER} and \samp{AUTHINFO PASS} commands are used to
! identify and authenticate the user to the server.
\end{classdesc}
! \begin{excdesc}{error_reply}
! Exception raised when an unexpected reply is received from the server.
! \end{excdesc}
! \begin{excdesc}{error_temp}
! Exception raised when an error code in the range 400--499 is received.
! \end{excdesc}
! \begin{excdesc}{error_perm}
! Exception raised when an error code in the range 500--599 is received.
! \end{excdesc}
! \begin{excdesc}{error_proto}
Exception raised when a reply is received from the server that does
! not begin with a digit in the range 1--5.
! \end{excdesc}
--- 61,108 ----
\var{user} and \var{password} are provided, the
\samp{AUTHINFO USER} and \samp{AUTHINFO PASS} commands are used to
! identify and authenticate the user to the server. If the optional
! flag \var{readermode} is true, then a \samp{mode reader} command is
! sent before authentication is performed. Reader mode is sometimes
! necessary if you are connecting to an NNTP server on the local machine
! and intend to call reader-specific commands, such as \samp{group}. If
! you get unexpected \code{NNTPPermanentError}s, you might need to set
! \var{readermode}. \var{readermode} defaults to \code{None}.
\end{classdesc}
! \begin{classdesc}{NNTPError}{}
! Derived from the standard exception \code{Exception}, this is the base
! class for all exceptions raised by the \code{nntplib} module.
! \end{classdesc}
!
! \begin{classdesc}{NNTPReplyError}{}
! Exception raised when an unexpected reply is received from the
! server. For backwards compatibility, the exception \code{error_reply}
! is equivalent to this class.
! \end{classdesc}
! \begin{classdesc}{NNTPTemporaryError}{}
! Exception raised when an error code in the range 400--499 is
! received. For backwards compatibility, the exception
! \code{error_temp} is equivalent to this class.
! \end{classdesc}
! \begin{classdesc}{NNTPPermanentError}{}
! Exception raised when an error code in the range 500--599 is
! received. For backwards compatibility, the exception
! \code{error_perm} is equivalent to this class.
! \end{classdesc}
! \begin{classdesc}{NNTPProtocolError}{}
Exception raised when a reply is received from the server that does
! not begin with a digit in the range 1--5. For backwards
! compatibility, the exception \code{error_proto} is equivalent to this
! class.
! \end{classdesc}
!
! \begin{classdesc}{NNTPDataError}{}
! Exception raised when there is some error in the response data. For
! backwards compatibility, the exception \code{error_data} is
! equivalent to this class.
! \end{classdesc}