How to just wait 3 secs ?
Cameron Laird
claird at lairds.com
Wed May 19 09:23:57 EDT 2004
In article <mailman.51.1084895275.6949.python-list at python.org>,
Mike C. Fletcher <mcfletch at rogers.com> wrote:
>import time
>time.sleep( 3 )
>...
>
>> I would like to make my script to wait 3 seconds ( so I can read the
>> output on the console )
>> and then continue.
>> How do I do it ?
.
.
.
While time.sleep() certainly is correct at that level,
I'm concerned about whether it's the best advice we can
give. If the original poster is writing a "console ap-
plication", and has in mind to allow user response, but
to time-out in three seconds if the user has *not* re-
sponded ... well, there's more to it than just
time.sleep(3)
--
Cameron Laird <claird at phaseit.net>
Business: http://www.Phaseit.net
More information about the Python-list
mailing list