Re: [Python-Dev] Capturing PyRun_String stdout

2015-06-30 Thread Amaury Forgeot d'Arc
Hi, 2015-06-30 21:40 GMT+02:00 Chris Moller : > I expect this has been asked before, but I can't find out much about it... > Please ask this kind of questions on the python-users mailing list (or comp.lang.python). There you will find helpful people wh

[Python-Dev] Capturing PyRun_String stdout

2015-06-30 Thread Chris Moller
I expect this has been asked before, but I can't find out much about it... I'm trying to embed Python as a scripting language and I need to capture the output of PyRun_String(), PyEval_EvalCode(), or whatever as a char * (or wchar_t * or whatever) rather than have it go to stdout. Python 3.3.