]> granicus.if.org Git - python/commitdiff
Clarify that quit() and close() render the instance useless.
authorGuido van Rossum <guido@python.org>
Fri, 7 Aug 1998 17:36:59 +0000 (17:36 +0000)
committerGuido van Rossum <guido@python.org>
Fri, 7 Aug 1998 17:36:59 +0000 (17:36 +0000)
Doc/lib/libftplib.tex

index d2358e89129a58cc1028fd5c7d5e60706eff1673..166fd6e75579dbda2382c4ef68e73a5bd5db683d 100644 (file)
@@ -234,11 +234,16 @@ standardized, but is supported by many common server implementations.
 Send a \samp{QUIT} command to the server and close the connection.
 This is the ``polite'' way to close a connection, but it may raise an
 exception of the server reponds with an error to the \samp{QUIT}
-command.
+command.  This implies a call to the \method{close()} method which
+renders the \class{FTP} instance useless for subsequent calls (see
+below).
 \end{methoddesc}
 
 \begin{methoddesc}{close}{}
 Close the connection unilaterally.  This should not be applied to an
 already closed connection (e.g.\ after a successful call to
-\method{quit()}.
+\method{quit()}.  After this call the \class{FTP} instance should not
+be used any more (i.e., after a call to \method{close()} or
+\method{quit()} you cannot reopen the connection by issueing another
+\method{login()} method).
 \end{methoddesc}