Re: Pexpect and buffering

2012-12-16 Thread jim . hefferon
Sorry to reply to my own post, but I believe I have my answer and I want to help anyone who might google their way here: I need to change PROMPT and PROMPT_CONTINUE to be regular expressions, for instance by escaping the periods. -- http://mail.python.org/mailman/listinfo/python-list

Pexpect and buffering

2012-12-15 Thread jim . hefferon
Hello, I'm trying to use pexpect to grab interactions with Python's REPL. I am having trouble with tracebacks. Possibly it is related to buffering (hence the subject line) but I admit that's a guess. At the end of this message is a minimal example program. It feeds three commands to a pytho