How to use a timer in Python?
sybrenUSE at YOURthirdtower.com.imagination
Fri Sep 23 08:26:50 CEST 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.
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?
More information about the Python-list