Comment 2 for bug 507620

Revision history for this message
Olivier Tilloy (osomon) wrote :

Redirecting std::cerr can be achieved using its rdbuf(…) method (see http://www.cplusplus.com/reference/iostream/ios/rdbuf/).
Parsing the messages may even be used to raise corresponding python exceptions, although I’m not sure that would be of any use (other than force the programmer to enclose the read/write calls in try… except… blocks).