Flushing sdtout

Aaron Ginn aaron.ginn at motorola.com
Fri Jul 7 16:01:07 EDT 2000


pj at sgi.com (Paul Jackson) writes:

> 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)


This works fabulously Paul.  Thanks!  This even resolves the issue I
had with the ecohing the input statement strings.

Thanks again!
Aaron

-- 
Aaron J. Ginn                     Motorola SPS
Phone: (480) 814-4463             SemiCustom Solutions
Fax:   (480) 814-4058             1300 N. Alma School Rd.
mailto:aaron.ginn at motorola.com    Chandler, AZ 85226



More information about the Python-list mailing list