printing dots in simple program while waiting



Ok, so this should be a really simple thing to do, but I haven't been
able to get it on the first few tries and couldn't find anything after
searching a bit.

what i want to do is print a 'waiting' statement while a script is
working-- the multithreading aspect isn't an issue, the printing on
the same line is. i want to print something like:

(1sec) working...
(2sec) working....
(3sec) working.....


where the 'working' line isn't being printed each second, but the dots
are being added with time.

something like:

import time
s = '.'
print 'working'
while True:
print s
time.sleep(1)


however, this doesn't work since it prints:

working
..
..
..

any suggestions?
.



Relevant Pages

  • Re: printing dots in simple program while waiting
    ... John wrote: ... working-- the multithreading aspect isn't an issue, the printing on ... where the 'working' line isn't being printed each second, but the dots ...
    (comp.lang.python)
  • Re: Sound of j and z in Hindi films and songs
    ... "Official Policy" to remove the dots from j-dot etc, ... there was a practice of writing an anuswar on certain words like ... the dictionaries and the script followed later. ... I also notice that the more vibrant a language more tolerant it is. ...
    (rec.music.indian.misc)
  • Re: scan dpi for photos
    ... like noise. ... If half tone dots. ... IRREGULAR pattern of "noise" in your scan depending on how large ... printing room and to better trick the eye into believing it is a ...
    (rec.photo.digital)
  • RE: Disable Access to a printer
    ... Setting the WaitOnReturn to true causes the script execution to wait until ... The check printing pogram is started from a batch file if i could have ... The other possibility i thought of is to use runas and set the printer ... HPPrinter and CheckPrinter. ...
    (microsoft.public.scripting.vbscript)
  • Re: Iraqi road sign?
    ... >>> dots above. ... Kurdish uses jim with one dot over and one dot ... >> caucasian languages, circassian and perhaps avar and a few others use ... this script is still in use by diaspora ...
    (sci.lang)