printing unfinished line

Gang Seong Lee gslee111 at daisy.kwangwoon.ac.kr
Sat Mar 25 02:08:20 EST 2000


Is there any way that I can see the output of a string not having a new line
char.
For example,

import time

print 'abc',
time.sleep(3)
print 'def'

'abc' is not displayed on the screen until it encounters last print 'def',
which has new line at the end of the line. sys.write('abc') has the same
effect.

Is it possible I can see 'abc' before it goes to print 'def' ?

Thank you

Gang





More information about the Python-list mailing list