This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author ecir.hana
Recipients ecir.hana
Date 2009-11-18.17:15:31
SpamBayes Score 9.915287e-05
Marked as misclassified No
Message-id <1258564533.69.0.0908463291045.issue7346@psf.upfronthosting.co.za>
In-reply-to
Content
I try to log all the output of a program written in Python and C to a
buffer. I create a pipe, redirect stdout to its write-end and then read
its content afterward. However, printing from Python fires "IOError:
[Errno 9] Bad file descriptor". Please see the attached test-case.

It is happening on Windows XP, Python 2.6 and MinGW GCC and I used this
to compile:
gcc -o std.exe std.c -Ic:/dev/include/python2.6 -l python26

PS: It might be that the problem is that Python was compiled with
MSVC2008 and I'm using MinGW but I'm not sure...
History
Date User Action Args
2009-11-18 17:15:33ecir.hanasetrecipients: + ecir.hana
2009-11-18 17:15:33ecir.hanasetmessageid: <1258564533.69.0.0908463291045.issue7346@psf.upfronthosting.co.za>
2009-11-18 17:15:32ecir.hanalinkissue7346 messages
2009-11-18 17:15:31ecir.hanacreate