output buffering

JD jd at something.com
Fri Nov 11 12:24:11 CET 2005


On 2005-11-11, Fredrik Lundh <fredrik at pythonware.com> wrote:
> "JD" <jd at something.com> wrote:
>
>> When reading a large datafile, I want to print a '.' to show the
>> progress. This fails, I get the series of '.'s after the data has been
>> read. Is there a trick to fix this?
>
> assuming that you're printing to stdout,
>
>     sys.stdout.flush()
>
> should do the trick.

It does,

Thanks!




More information about the Python-list mailing list