Where does Python print to, if the print statement is in a python function, called from C\C++ in an embedded Python configuration?
Amro
125k25 gold badges250 silver badges466 bronze badges
asked May 11, 2011 at 11:21
Jonathan Livni
108k112 gold badges278 silver badges367 bronze badges
1 Answer 1
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.
answered May 11, 2011 at 11:45
Cédric Julien
81.2k16 gold badges131 silver badges134 bronze badges
Sign up to request clarification or add additional context in comments.
Comments
lang-py