STINNER Victor added the comment: > 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. ---------- _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue22443> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com