Python drives me mad...
Boris.Ottlewski at NOSPAMsystemsoft.de
Mon Mar 20 15:54:05 CET 2000
Last attempt to get the result from python in embedded mode. (I am about to
I do this:
new_stdout = PyFile_FromString("c:\\freopen.out", "w");
int res = PyRun_SimpleString("print 2\n");
This should print the "2" to the redirected stdout which is c:\freopen.out.
But the file is empty!!!!!!!!!! and...I cant delete it, it is still locked
(shouldnt Py_XDECREF close it?)
More information about the Python-list