telnetlib strange behavior?
bragib at my-deja.com
bragib at my-deja.com
Thu Jun 15 09:44:56 EDT 2000
[snip]
>
> The documentation for telnetlib is confusing. What is does not state
> is that if you supply a hostname when you instantiate an instance of
> Telnet() that it will open the instance. What it does tell you however
> is not to try to re-open a connected instance... (see the source code
> for __init__ and the docstring for open.
>
> You are doing :
> >tn = telnetlib.Telnet(HOST)
> >tn.open(HOST)
This does not seem to cause any problems.
I also tried tn = telnetlib.Telnet(), tn.open(HOST)
Thanks, bragi
Sent via Deja.com http://www.deja.com/
Before you buy.
More information about the Python-list
mailing list