AW: [C++-sig] Stdout from c++

Niall Douglas s_sourceforge at nedprod.com
Thu Nov 6 20:59:10 CET 2003


On 6 Nov 2003 at 9:28, Oliver Walczak wrote:

> Dear Niall,
> If it helps out finding the bug: i use WinXP Professional and Python
> 2.3.2. I tried to change my print commands from cout to printf as you
> said, but in the idle environment nothing gets on screen. But using
> the hint of Nicodemus, PySys_WriteStdout, is exactly what i was
> looking for and works fine now. Thanx for your advice, folks! Oliver

Just threw together a test, and it would seem that I have misadvised 
the list (again). It turns out I had forgotten that my python code 
was using os.popen to invoke a python which then calls the C++ code, 
so of course printf()'d stuff appears in IDLE.

Sorry about that :(

Cheers,
Niall




-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 208 bytes
Desc: not available
URL: <http://mail.python.org/pipermail/cplusplus-sig/attachments/20031106/93aaef32/attachment.pgp>


More information about the Cplusplus-sig mailing list