[Python-Dev] sched module - still useful?

skip at pobox.com skip at pobox.com
Mon Oct 8 22:23:03 CEST 2007

I apologize in advance for the somewhat provocative subject.  Is the sched
module still appropriate in an increasingly event-driven world?  If so, can
someone suggest how it might be used with a non-blocking delay function such
as gobject.timeout_add?  It would be nice to either remark in the
documentation that the sched module doesn't play nice with event-driven
architectures or provide an example of how it can.  It doesn't seem to be
possible without resorting to threads (not generally a big problem, but not
always the best choice either, depending on the environment in which you
find yourself).  The delayfunc is called and when it finishes, the action
function is called.



More information about the Python-Dev mailing list