print to console without a line break

Qian Xu quian.xu at stud.tu-ilmenau.de
Tue Dec 23 09:51:00 EST 2008


Albert Hopkins wrote:

> On Tue, 2008-12-23 at 13:18 +0000, Lie Ryan wrote:
> 
> Probably because your stdout is line-buffered. Try:
> 
> sys.stdout.write("Testing something...")
> sys.stout.flush() # flush the stdout buffer

Thanks. This works for me ^^)



More information about the Python-list mailing list