Timers in Python?

Gilles Lenfant glenfant at equod.com.nospam
Tue Dec 19 08:29:25 EST 2000


Yes...

Sorry for this !

"Aahz Maruch" <aahz at panix.com> a écrit dans le message news:
91lq8r$gu2$1 at panix6.panix.com...
> 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):
>         threading.Thread.__init__(self)
>         self.function = function
>         self.delay = delay
>
> For more info on threading, take a look at
> http://starship.python.net/crew/aahz/
> --
>                       --- 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