Unbuffered stdout/auto-flush

Yang Zhang yanghatespam at gmail.com
Sat Jun 21 13:29:48 EDT 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
http://www.mit.edu/~y_z/



More information about the Python-list mailing list