using pexpect to control python

Adrian Casey news at outbacklinux.com
Tue Aug 24 06:13:22 EDT 2004


Maurice LING wrote:

> I know this might sounds wierd but I'm wondering if I can use pexpect or
> os.popen3 function to invoke and control python interpreter to make it
> act like a python interpreter in python?
> 
> maurice

Yes, should be possible.  I have used tcl expect to call other expect
scripts successfully in the past.  You can use pexpect to control any
command-line tool.

What are you trying to achieve?




More information about the Python-list mailing list