Pexpect and buffering

Chris Rebert clp2 at
Sun Dec 16 04:44:44 CET 2012

On Dec 15, 2012 4:51 AM, <jim.hefferon at> wrote:
> 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.

Why are you doing this in the first place? Why invoke an external Python
shell when you're in a Python program to begin with? Seems terribly
unnecessarily roundabout.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <>

More information about the Python-list mailing list