printf will generally work in C extensions (although, as others have
said, it goes to STDOUT which is not necessarily the same as Python
sys.stdout)
Try explicitly flushing the buffer with fflush(stdout)
--
http://mail.python.org/mailman/listinfo/python-list
In article <[EMAIL PROTECTED]>, [EMAIL PROTECTED] 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 somethi
<[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED]
> Hi,
>
>
> 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.
It shou
[EMAIL PROTECTED] 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
Hi,
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
thi