[Python-Dev] new module proposal: expect

Aahz aahz at pythoncraft.com
Thu Dec 11 19:57:07 EST 2003


On Thu, Dec 11, 2003, Keith Dart wrote:
>
> It is sometimes necessary to interact with other programs, or users, as
> a user would via a command line interface. This is especially common in
> QA environments. A program called "expect", which is based on the Tcl
> language, has commonly been used for this. But that program is, well,
> not Python. ;-) Having a general purpose "expect" module for Python
> means that Python could be used out-of-the-box for the same tasks that
> the older "expect" program is used for. The attached expect.py module
> provides most of the core functionality of the original expect tool.
> Other functionality from the "expect" tool is duplicated in other Python
> modules. 

How does this differ from http://pexpect.sourceforge.net/
-- 
Aahz (aahz at pythoncraft.com)           <*>         http://www.pythoncraft.com/

Weinberg's Second Law: If builders built buildings the way programmers wrote 
programs, then the first woodpecker that came along would destroy civilization.



More information about the Python-Dev mailing list