How can I control standard out of C++ routines wrapped with SWIG and exposed in Python?
- by cmdev
Is it possible to control the standard streams of C++ code in python? So the code is wrapped with SWIG and then exposed to python where I call its functions.
I am getting all kinds of unwanted messages coming from C++ code and I want to suppress them either by not using the stream or by redirecting it to a bit bucket.