[C++-sig] printf from an extension (original) (raw)

Hans Meine meine at kogs1.informatik.uni-hamburg.de
Fri Dec 9 16:16:12 CET 2005


On Friday 09 December 2005 01:41, mike cantor wrote:

the "can print from in here phrase" does not reach python stdout. Is there something screwy with my environment or is there some trick to this that I don't know. Probably you're fooled by output buffering. Try appending \n .

static PyObject* helloworld(PyObject* self) { printf("can print from in here?"); return PyBuildValue("s", "hello"); }

I'm using cerr/cout all the time.

-- Ciao, / / /--/ / / ANS



More information about the Cplusplus-sig mailing list