Unbuffered stdout/auto-flush

Yang Zhang yanghatespam at gmail.com
Sat Jun 21 19:29:48 CEST 2008

Hi, is there any way to get unbuffered stdout/stderr without relying on 
the -u flag to python or calling .flush() on each print (including 
indirect hacks like replacing sys.stdout with a wrapper that succeeds 
each write() with a flush())?  Thanks in advance!
Yang Zhang

More information about the Python-list mailing list