]> granicus.if.org Git - python/commitdiff
Clarify status of connection of a new instance; it *is* connected if
authorFred Drake <fdrake@acm.org>
Wed, 3 May 2000 15:11:47 +0000 (15:11 +0000)
committerFred Drake <fdrake@acm.org>
Wed, 3 May 2000 15:11:47 +0000 (15:11 +0000)
you pass server information to the constructor.  Error noted by Pedro
Diaz Jimenez <diazjimenez@ctv.es>.

Doc/lib/libtelnetlib.tex

index eaf6699279ba2805a855afedf2598ea417454f06..64c5099a7a5e6d161384413132fd7be844eac180 100644 (file)
@@ -12,9 +12,11 @@ protocol.
 
 \begin{classdesc}{Telnet}{\optional{host\optional{, port}}}
 \class{Telnet} represents a connection to a telnet server. The
-instance is initially not connected; the \method{open()} method must
-be used to establish a connection.  Alternatively, the host name and
-optional port number can be passed to the constructor, too.
+instance is initially not connected by default; the \method{open()}
+method must be used to establish a connection.  Alternatively, the
+host name and optional port number can be passed to the constructor,
+to, in which case the connection to the server will be established
+before the constructor returns.
 
 Do not reopen an already connected instance.