¡@

Home 

python Programming Glossary: pythoncallbackfunc

How To catch python stdout in c++ code

http://stackoverflow.com/questions/4307187/how-to-catch-python-stdout-in-c-code

it in some file. This is a declaration of the function pythonCallBackFunc const char pythonInput My problem is to catch all the python.. written. #include boost python.hpp #include iostream void pythonCallBackFunc const char inputStr PyRun_SimpleString inputStr int main ..... 'a' PyRun_SimpleString sys.stdout fsock ... my func pythonCallBackFunc print 'HAHAHAHAHA' pythonCallBackFunc result 5 pythonCallBackFunc..