Controlling C++ Output from Python Script
<p>I have a bit of an issue here.  I have a Python script which calls binaries compiled from C++.  The Python script has its own set of outputs (to standard out and error), which are easily disable-able.  The C++ binaries have their own set of outputs (to standard out and error, among others) as well; the source can be altered, but I am not the original author.  This is an issue because I do not want the C++ output in my final program, and I also don't want future users to need to edit the C++ source.  </p>

<p>What I'd like to be able to do is have some Python method which will catch the C++ code's output that is sent to standard out or error.  Is this possible?  If so, could someone point me in the right direction?</p>

<p>Thank you!!</p>
