How to capture stdout/stderr?
Aug. 28, 2004
5:08 a.m.
Hi, I am trying to capture stdout and stderr from Python using boost.python. I can do it using the Python C API but can't work out the correct way to do it using the boost wrappers. Using the C API I'd do something like: PyObject* pObj = Py_InitModule("stdout", my_methods); PySys_SetObject("stdout", pObj); PySys_SetObject("stderr", pObj); How should I do this with boost? Thanks Peter
8075
Age (days ago)
8075
Last active (days ago)
0 comments
1 participants
participants (1)
-
Peter