Deferring a function call

Cameron Simpson cs at zip.com.au
Tue Oct 19 01:53:27 EDT 2010


On 19Oct2010 04:59, Steven D'Aprano <steve-REMOVE-THIS at cybersource.com.au> wrote:
| Chris Rebert has already mentioned the sched module. Otherwise, put the 
| function call in a thread, and have the thread use time.sleep to wait 
| until the right time to execute.

There is also the Timer class from the threading module.

Cheers,
-- 
Cameron Simpson <cs at zip.com.au> DoD#743
http://www.cskk.ezoshosting.com/cs/

A crash reduces
your expensive computer
to a simple stone.
- Haiku Error Messages http://www.salonmagazine.com/21st/chal/1998/02/10chal2.html



More information about the Python-list mailing list