[Patches] [ python-Patches-708007 ] TelnetPopen3, TelnetBase, Expect split

SourceForge.net noreply@sourceforge.net
Sat, 22 Mar 2003 05:34:34 -0800


Patches item #708007, was opened at 2003-03-22 13:34
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=305470&aid=708007&group_id=5470

Category: Library (Lib)
Group: Python 2.2.x
Status: Open
Resolution: None
Priority: 5
Submitted By: Luke Kenneth Casson Leighton (lkcl)
Assigned to: Nobody/Anonymous (nobody)
Summary: TelnetPopen3, TelnetBase, Expect split

Initial Comment:
A reordering / code-split of Telnet in telnetlib.py
into Expect (the lowest base class), TelnetBase, Telnet
and TelnetPopen4.

Reason: Expect contains all of the read_xxx(),
expect(), write() and select() functions (and the
interact() and mt_interact())

TelnetPopen4 and Telnet derive from the same TelnetBase
class, and there is nothing stopping anyone from
writing a TelnetHTTP or TelnetURL class which will all
have the same interface: expect() and write() and even
interact()!

weird, huh - typing in URLs and getting the content
back, interactively :)

these TelnetXXX classes are all incredibly useful for
"remote host management" purposes; also the principle
of the TelnetHTTP class is very useful for doing
automated testing of web sites.  send URL, expect text
in it before proceeding with next URL (e.g. login,
check to see if login failed or succeeded; react
accordingly).

----------------------------------------------------------------------

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=305470&aid=708007&group_id=5470