Re: Unbuffered stdout/auto-flush

2008-06-21 Thread s0suk3
On Jun 21, 12:29 pm, Yang Zhang <[EMAIL PROTECTED]> wrote: > 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 flu

Unbuffered stdout/auto-flush

2008-06-21 Thread Yang Zhang
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_