On Dec 8, 2005, at 4:43 PM, mike cantor wrote:
> I am extending python with C and trying to debug with printf. The
> code
> below succssfully returns the string "hello" when compiled and
> called, but
> 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. Any help would be greatly appreciated!
>
> -mike
>
> #include <Python.h>
>
> static PyObject*
> helloworld(PyObject* self)
> {
> printf("can print from in here?");
> return Py_BuildValue("s", "hello");
> }
It'll probably work if you add a line break there. It's likely just
sitting in a buffer waiting to be flushed.
-bob
_______________________________________________
Distutils-SIG maillist - [email protected]
http://mail.python.org/mailman/listinfo/distutils-sig