C++ to python communication. Multiple io streams?

Posted by Dennis Kempin on Stack Overflow See other posts from Stack Overflow or by Dennis Kempin
Published on 2012-06-22T21:10:24Z Indexed on 2012/07/09 15:16 UTC
Read the original article Hit count: 220

Filed under:
|
|
|

A python program opens a new process of the C++ program and is reading the processes stdout. No problem so far.

But is it possible to have multiple streams like this for communication? I can get two if I misuse stderr too, but not more. Easy way to hack this would be using temporary files. Is there something more elegant that does not need a detour to the filesystem?

PS: *nix specific solutions are welcome too

© Stack Overflow or respective owner

Related posts about python

Related posts about process