[issue4781] The function, Threading.Timer.run(), may be Inappropriate

2009-01-14 Thread Amaury Forgeot d'Arc
Amaury Forgeot d'Arc added the comment: Indeed, Timer is designed to run the function once. -- nosy: +amaury.forgeotdarc resolution: -> works for me status: open -> closed ___ Python tracker __

[issue4781] The function, Threading.Timer.run(), may be Inappropriate

2008-12-31 Thread Gabriel Genellina
Gabriel Genellina added the comment: Note that doing this would change the class semantics. Timer "[...] represents an action that should be run only after a certain amount of time has passed — a timer." and the example clearly shows that the action is run *once*. Timer is basically an examp

[issue4781] The function, Threading.Timer.run(), may be Inappropriate

2008-12-30 Thread Deli.Zhang
New submission from Deli.Zhang : 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):