Jonathan Livni
Jonathan Livni

Reputation: 107302

Python print output while embedding Python in C\C++

Where does Python print to, if the print statement is in a python function, called from C\C++ in an embedded Python configuration?

Upvotes: 1

Views: 848

Answers (1)

Cédric Julien
Cédric Julien

Reputation: 80851

In python, the print statement writes into sys.stdout (which is the standard output) even in an embedded app, you should see your prints in the console that started the application.

Upvotes: 3

Related Questions