How to use a timer in Python?

Sybren Stuvel sybrenUSE at YOURthirdtower.com.imagination
Fri Sep 23 02:26:50 EDT 2005


Nico Grubert enlightened us with:
> How can I use a timer that waits e.g. 10 seconds if 'transfer.lock'
> is present and then checks again if 'transfer.lock' is still there?

Make a while loop in which you sleep. Or use the threading module if
you want to go multi-threading.

Sybren
-- 
The problem with the world is stupidity. Not saying there should be a
capital punishment for stupidity, but why don't we just take the
safety labels off of everything and let the problem solve itself? 
                                             Frank Zappa



More information about the Python-list mailing list