equivalent to Tcl 'after' command?

Peter Hansen peter at engcorp.com
Thu Apr 22 16:10:56 EDT 2004


Jeff Epler wrote:

> Python doesn't define any event loop of its own.  asyncore has one, but
> I don't think it has the concept of scheduling events at a future time,
> but only of reacting to the readability / writability of sockets.
> 
> I'm sure that more advanced systems, like Twisted, can do the kind of
> thing you're asking for.

It does, using reactor callLater(), but I'd go for the sched approach
if it's just a one-off.



More information about the Python-list mailing list