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 vstinner
Recipients Sworddragon, vstinner
Date 2014-09-19.14:41:05
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1411137665.39.0.14837395544.issue22443@psf.upfronthosting.co.za>
In-reply-to
Content
> This means in the worst case there is currently no official way to get this output before it writes a newline?

The behaviour of stdout/stderr is defined in the C library, see setvbuf() manual for more information. I don't know a generic way to change the default buffering without modifying the application (or the LD_PRELOAD hack).

> I will try later if I can successfully compile Python with this hack.

You don't need to compile Python. Just compile nobuffer.c to libnobuffer.so. See the "documentation" in nobuffer.c.
History
Date User Action Args
2014-09-19 14:41:05vstinnersetrecipients: + vstinner, Sworddragon
2014-09-19 14:41:05vstinnersetmessageid: <1411137665.39.0.14837395544.issue22443@psf.upfronthosting.co.za>
2014-09-19 14:41:05vstinnerlinkissue22443 messages
2014-09-19 14:41:05vstinnercreate