Flushing sdtout

Paul Jackson pj at sgi.com
Fri Jul 7 15:02:03 EDT 2000


Aaron asks:
|> Is there a simple way to flush stdout on every print

How about 'python -u':

      -u   Force stdin, stdout and stderr to be totally
	   unbuffered.

(which I found by grepping for 'setbuf' in the source
code and tracing backwards to see how it was controlled)
-- 
-- 
I won't rest till it's the best ...	   Software Production Engineer
Paul Jackson (pj at sgi.com; pj at usa.net) 3x1373 http://sam.engr.sgi.com/pj



More information about the Python-list mailing list