Embedding interactive interpreter

Ryan K ryankaskel at gmail.com
Tue Jun 5 09:39:17 EDT 2007


Hi. I am trying to embed an interactive interpreter in a C++
application. I need to capture the output of int
PyRun_InteractiveOne(FILE *fp, const char *filename). Is redirecting
sys.stdout and sys.stderr after initializing the interpreter the best
way to do this?

Thanks,
Ryan




More information about the Python-list mailing list