sys.stdout.write() question
Peter Hansen
peter at engcorp.com
Mon Jun 21 10:26:35 EDT 2004
Gian Mario Tagliaretti wrote:
> It is (I hope) a simple question,
> I cannot figure out why sys.stdout.write() doesn't print immediatly the first
> text in the small example below, but before it process the code in between
> and then print both lines in one time.
sys.stdout.flush(). Flush on a file object pushes out all the data
that has been buffered to that point.
-Peter
More information about the Python-list
mailing list