Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #8659
| Newsgroups | comp.lang.python |
|---|---|
| Date | 2011-07-01 23:53 -0700 |
| Subject | Re: how to call a function for evry 10 secs |
| From | Rune <rune.strand@gmail.com> |
| Message-ID | <mailman.555.1309589583.1164.python-list@python.org> (permalink) |
>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.
Back to comp.lang.python | Previous | Next | Find similar | Unroll thread
Re: how to call a function for evry 10 secs Rune <rune.strand@gmail.com> - 2011-07-01 23:53 -0700
csiph-web