Timers in Python?

Aahz Maruch aahz at panix.com
Mon Dec 18 20:58:19 CET 2000

In article <3a3e61cf.24049354 at news.skynet.be>,
Daniel <Daniel.Kinnaer at AdValvas.be> wrote:
>class TimeScheduled(threading.Thread):
>    def __init__(self, function, delay):
>        self.function = function
>        self.delay = delay

Gilles made a boo-boo.  Here's the correct code:

class TimeScheduled(threading.Thread):
    def __init__(self, function, delay):
        self.function = function
        self.delay = delay

For more info on threading, take a look at 
                      --- Aahz (Copyright 2000 by aahz at pobox.com)

Androgynous poly kinky vanilla queer het    <*>     http://www.rahul.net/aahz/
Hugs and backrubs -- I break Rule 6

This is a signature anti-virus. 
Please stop the spread of signature viruses!

More information about the Python-list mailing list