python sys.stdout and C++ iostreams::cout
rosuav at gmail.com
Thu Jan 17 16:54:53 CET 2013
On Fri, Jan 18, 2013 at 2:51 AM, Utpal Sarkar <doetoe at gmail.com> wrote:
> Thanks a lot Chris and Nobody! I'll have a look at dup2 for a start.
Okay. Look for code that redirects the standard I/O streams and then
exec()s another process (possibly after fork()ing); you're going to be
doing pretty much the same thing. Good luck, have fun. It's a LOT
messier than simply assigning to sys.stdout, unfortunately.
More information about the Python-list