output buffering
skip at pobox.com
skip at pobox.com
Fri Nov 11 09:22:52 EST 2005
jd> When reading a large datafile, I want to print a '.' to show the
jd> progress. This fails, I get the series of '.'s after the data has
jd> been read. Is there a trick to fix this?
As Fredrik indicated, you need to flush the output buffer. You might also
want to check out the progress module available from my Python Bits page:
http://orca.mojam.com/~skip/python/
Skip
More information about the Python-list
mailing list