Asynchronously redirect stdout/stdin from embedded python to c++?

后端 未结 3 1996
忘了有多久
忘了有多久 2021-02-07 10:04

I am essentially trying to write a console interface with input and output for an embedded python script. Following the instructions here, I was able to capture stdout:

3条回答
  •  北海茫月
    2021-02-07 10:30

    If you stick with the approach you outlined, inheriting your class from io.IOBase is probably a good idea.

提交回复
热议问题