This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author gestapo21th
Recipients gestapo21th
Date 2008-12-30.15:44:00
SpamBayes Score 0.0004778641
Marked as misclassified No
Message-id <1230651841.99.0.415726342941.issue4781@psf.upfronthosting.co.za>
In-reply-to
Content
def run(self):
        self.finished.wait(self.interval)
        if not self.finished.isSet():
            self.function(*self.args, **self.kwargs)
        self.finished.set()

I think the function run() should be modified to like this below:

def run(self):
        while not self.finished.isSet():
            self.finished.wait(self.interval)
            self.function(*self.args, **self.kwargs)

In this case, it can still run on next 'interval', and next's next...
History
Date User Action Args
2008-12-30 15:44:02gestapo21thsetrecipients: + gestapo21th
2008-12-30 15:44:01gestapo21thsetmessageid: <1230651841.99.0.415726342941.issue4781@psf.upfronthosting.co.za>
2008-12-30 15:44:01gestapo21thlinkissue4781 messages
2008-12-30 15:44:00gestapo21thcreate