Re: printing dots in simple program while waiting

2008-01-09 Thread Alex VanderWoude
John wrote: > 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' l

Re: printing dots in simple program while waiting

2008-01-09 Thread John Machin
Of Martin Marcher > > > Sent: Wednesday, January 09, 2008 11:57 AM > > > To: [EMAIL PROTECTED] > > > Subject: Re: printing dots in simple program while waiting > > > > John wrote: > > > > > import time > > > > s = '.' >

Re: printing dots in simple program while waiting

2008-01-09 Thread John
On Jan 9, 12:14 pm, "Reedick, Andrew" <[EMAIL PROTECTED]> wrote: > > -Original Message- > > From: [EMAIL PROTECTED] [mailto:python- > > [EMAIL PROTECTED] On Behalf Of Martin Marcher > > Sent: Wednesday, January 09, 2008 11:57 AM > > To: [EMAI

Re: printing dots in simple program while waiting

2008-01-09 Thread Santiago Romero
On 9 ene, 17:48, John <[EMAIL PROTECTED]> wrote: > 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 = '.' >

RE: printing dots in simple program while waiting

2008-01-09 Thread Reedick, Andrew
> -Original Message- > From: [EMAIL PROTECTED] [mailto:python- > [EMAIL PROTECTED] On Behalf Of Martin Marcher > Sent: Wednesday, January 09, 2008 11:57 AM > To: python-list@python.org > Subject: Re: printing dots in simple program while waiting > > John wrote:

Re: printing dots in simple program while waiting

2008-01-09 Thread John
On Jan 9, 11:56 am, Martin Marcher <[EMAIL PROTECTED]> wrote: > John wrote: > > import time > > s = '.' > > print 'working', # Note the "," at the end of the line > > while True: > > print s > > time.sleep(1) > > see my comment in the code above... > > if that's what you mean > > /martin >

Re: printing dots in simple program while waiting

2008-01-09 Thread Tim Chase
Martin Marcher wrote: > John wrote: > >> import time >> s = '.' >> print 'working', # Note the "," at the end of the line >> while True: >> print s, #Note the "," at the end of this line too... >> time.sleep(1) > > see my comment in the code above... see my added comment in the code abov

Re: printing dots in simple program while waiting

2008-01-09 Thread Martin Marcher
John wrote: > import time > s = '.' > print 'working', # Note the "," at the end of the line > while True: > print s > time.sleep(1) see my comment in the code above... if that's what you mean /martin -- http://noneisyours.marcher.name http://feeds.feedburner.com/NoneIsYours You are