JamesL at Lugoj.Com
Mon Jul 16 17:46:01 CEST 2001
> I want to write a program that does things on a timed basis. Can someone
> tell me where is the best place to start? I can't seem to find any modules
> that will help me.
Have you looked at the sched module?
Depending on what else you need to do, you can launch a thread that sleeps
(see the thread, threading, and time modules) or slightly more involved you
can look at using a select loop (see the select module). Some pre-built
select-loop constructs exist in module asyncore (whose library documentation
is clearly incomplete; one must look at the module's source code to use it
effectively and one should also understand the finer details of select-loop
More information about the Python-list