[Python-Dev] new module: scheduler

Devin devin at whitebread.org
Fri Dec 12 00:34:31 EST 2003

I wanted to lurk a while longer before posting again, but I feel I have 
something worthwhile to add.

On Thu, 11 Dec 2003, Keith Dart wrote:

> Whew, ok. Here is another one. Perhaps this one is misnamed, but it is
> called scheduler and takes over SIGALRM to provide running callback
> functions at scheduled intervals or time delays. Also provides an
> alternate implementation for "sleep". It operates asynchronously. That
> is, your main thread of execution still runs and is interrupted by
> SIGALRM and your specified callbacks are run.
> I am aware of the sched module, but that one is for threads, and is not
> asynchronous (your main thread blocks in the run() method).

A little more than a year ago, I also wrote a threaded scheduler.  The
code can be found here:


Since then, I've found the functionality of a threaded scheduler to be
very useful, and believe that _a_ threaded scheduler (not necessarily my
impementation) would be a nice addition to the standard library.

Good suggestion, Keith. :)

::Lurk mode on::

devin at whitebread.org

More information about the Python-Dev mailing list