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
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 above...
Though this
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
-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:
import time
s = '.'
print
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 not
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 = '.'
print
PROTECTED]
Subject: Re: printing dots in simple program while waiting
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
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: [EMAIL PROTECTED]
Subject: Re: printing dots in simple program