~pythonregexp2.7/python/issue2636-12

« back to all changes in this revision

Viewing changes to Doc/library/telnetlib.rst

  • Committer: Jeffrey C. "The TimeHorse" Jacobs
  • Date: 2008-06-09 14:52:42 UTC
  • mfrom: (39033.1.3 Regexp-2.6)
  • Revision ID: darklord@timehorse.com-20080609145242-9m268zc6u87rp1vp
Merged in changes from the core Regexp branch.

Show diffs side-by-side

added added

removed removed

Lines of Context:
28
28
   :class:`Telnet` represents a connection to a Telnet server. The instance is
29
29
   initially not connected by default; the :meth:`open` method must be used to
30
30
   establish a connection.  Alternatively, the host name and optional port
 
31
   and timeout can be passed to the constructor, in which case the connection to
 
32
   the server will be established before the constructor returns.  The optional
 
33
   *timeout* parameter specifies a timeout in seconds for the connection attempt (if
 
34
   not specified, the global default timeout setting will be used).
 
35
 
31
36
   number can be passed to the constructor, to, in which case the connection to
32
37
   the server will be established before the constructor returns. The optional
33
38
   *timeout* parameter specifies a timeout in seconds for blocking operations
128
133
   Connect to a host. The optional second argument is the port number, which
129
134
   defaults to the standard Telnet port (23). The optional *timeout* parameter
130
135
   specifies a timeout in seconds for blocking operations like the connection
131
 
   attempt (if not specified, or passed as None, the global default timeout
132
 
   setting will be used).
 
136
   attempt (if not specified, the global default timeout setting will be used).
133
137
 
134
138
   Do not try to reopen an already connected instance.
135
139