Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #8659 > unrolled thread

Re: how to call a function for evry 10 secs

Started byRune <rune.strand@gmail.com>
First post2011-07-01 23:53 -0700
Last post2011-07-01 23:53 -0700
Articles 1 — 1 participant

Back to article view | Back to comp.lang.python


Contents

  Re: how to call a function for evry 10 secs Rune <rune.strand@gmail.com> - 2011-07-01 23:53 -0700

#8659 — Re: how to call a function for evry 10 secs

FromRune <rune.strand@gmail.com>
Date2011-07-01 23:53 -0700
SubjectRe: how to call a function for evry 10 secs
Message-ID<mailman.555.1309589583.1164.python-list@python.org>
>Dennis Lee Bieber: 
> 	Timer() is a one-shot; per the OPs requirements even it would need
> to be placed within a loop to invoke multiple calls -- so there isn't
> much gain in terms of lines of code... And worse, since it calls the
> function asynchronously and not sequentially, a delay time for each
> instance would have to be computed inside the loop too...

The first/last task for the called function may be to instantiate a new Timer - depending on what "every 10 secs" means. The OP does not detail his actual problem, so I can't see that the async/sequential issue.

[toc] | [standalone]


Back to top | Article view | comp.lang.python


csiph-web