peter at engcorp.com
Mon Jun 21 16:26:35 CEST 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.
More information about the Python-list