Open brainstorm opened 10 years ago
Right now, it is not handled properly, since the strings returned by facs remove cannot be handled by python:
http://stackoverflow.com/questions/2420317/why-does-my-hello-world-python-c-module-work-correctly-in-everything-but-idle
void writeout(const char* nullterminated) { PyObject* sysmod = PyImport_ImportModuleNoBlock("sys"); PyObject* pystdout = PyObject_GetAttrString(sysmod, "stdout"); PyObject* result = PyObject_CallMethod(pystdout, "write", "s", nullterminated); Py_XDECREF(result); Py_XDECREF(pystdout); Py_XDECREF(sysmod); }
Right now, it is not handled properly, since the strings returned by facs remove cannot be handled by python:
http://stackoverflow.com/questions/2420317/why-does-my-hello-world-python-c-module-work-correctly-in-everything-but-idle