Printing dots in single-line

Jay O'Connor joconnor at cybermesa.com
Sat Nov 15 14:54:01 EST 2003


On Thu, 13 Nov 2003 12:22:01 -0300, <trofer at nic.nac.wdyn.de> wrote:

>Hey there,
>
>I want to print some dots in a single-line while my program loads or does
>something. I tried with he following but it didn't work :(.
>
>while 1:
>    print '.',
>
>Prints line of dots separated by a whitespace (. . . . . . etc). Is there a
>way I can get it to display them without that white space (.......etc)?

import sys

while 1:
	sys.stdout.write(".")




More information about the Python-list mailing list