diff options
author | Guido van Rossum <guido@python.org> | 1998-08-07 17:36:59 (GMT) |
---|---|---|
committer | Guido van Rossum <guido@python.org> | 1998-08-07 17:36:59 (GMT) |
commit | 730d83797e93d31143849229bceb0b9f54293e14 (patch) | |
tree | d36882024ae822abd2ff43cbf6eb88c6d8d91a77 /Doc | |
parent | 161edc29a624d3d40eeb4706cc8a26ce58921f0e (diff) | |
download | cpython-730d83797e93d31143849229bceb0b9f54293e14.zip cpython-730d83797e93d31143849229bceb0b9f54293e14.tar.gz cpython-730d83797e93d31143849229bceb0b9f54293e14.tar.bz2 |
Clarify that quit() and close() render the instance useless.
Diffstat (limited to 'Doc')
-rw-r--r-- | Doc/lib/libftplib.tex | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/Doc/lib/libftplib.tex b/Doc/lib/libftplib.tex index d2358e8..166fd6e 100644 --- a/Doc/lib/libftplib.tex +++ b/Doc/lib/libftplib.tex @@ -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} |