equivalent to Tcl 'after' command?

Giles Brown giles_brown at hotmail.com
Fri Apr 23 08:57:48 EDT 2004


Mark Harrison <mh at pixar.com> wrote in message news:<huThc.54272$9V6.15414 at newssvr25.news.prodigy.com>...
> I'm writing some event-driven programs, and I would like
> to do the equivalent of the Tcl 'after' command, e.g.:
> 
> 	after 1000 {puts "one second has elapsed"}
> 
> 1.  What's the most canonical way of doing this?

Not exactly canonical (I certainly haven't used it more than once if that), but
there is the standard library "sched" module.

Giles



More information about the Python-list mailing list