python facility question
Aahz Maruch
aahz at netcom.com
Wed Aug 2 18:40:55 EDT 2000
In article <8ma6tp$ho1$1 at nnrp1.deja.com>, Sindh <skodela at my-deja.com> wrote:
>
>Is there a way to implement with minimal system strain, a wait proc.
>
>Basically something similar to tcl after command. I need to do some work
>every say 30 secs. I wonder if there is something I can use like
>
>while 1:
> myproc()
> wait(30)
Use time.sleep() for this exact algorithm. There are also other
mechanisms that are more complicated.
--
--- Aahz (Copyright 2000 by aahz at pobox.com)
Androgynous poly kinky vanilla queer het <*> http://www.rahul.net/aahz/
Hugs and backrubs -- I break Rule 6
NOTE: end of September, Earthlink kills Netcom. My new permanent address is
aahz at pobox.com. I have not decided where to set my primary shell account.
Please do not send me e-mail condolences; my mailbox is already too big.
More information about the Python-list
mailing list