[C++-sig] Stdout from c++

Nicodemus nicodemus at esss.com.br
Wed Nov 5 22:31:45 CET 2003

Oliver Walczak wrote:

>Dear list,
>I'm quite new to programming c++ extensions for python (not to the c++
>Language itself) and i'm wondering what might be the simplest way to make
>simple string output to sys.stdout from the c++ api. Can anybody give me a
>hint? I used iostream and cout until now and this works well in the command
>shell, but not running the idle console under windows.

The correct way seems to be to use PySys_WriteStdout and PySys_WriteStderr.

More information about the Cplusplus-sig mailing list