Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #8659
| Path | csiph.com!x330-a1.tempe.blueboxinc.net!usenet.pasdenom.info!gegeweb.org!de-l.enfer-du-nord.net!feeder1.enfer-du-nord.net!feeder.news-service.com!feeder.news-service.com!news2.euro.net!newsgate.cistron.nl!newsgate.news.xs4all.nl!post.news.xs4all.nl!not-for-mail |
|---|---|
| Return-Path | <rune.strand@gmail.com> |
| X-Original-To | python-list@python.org |
| Delivered-To | python-list@mail.python.org |
| X-Spam-Status | OK 0.029 |
| X-Spam-Evidence | '*H*': 0.94; '*S*': 0.00; 'instance': 0.05; 'computed': 0.07; 'message- id:@glegroupsg2000goo.googlegroups.com': 0.09; 'reply- to:addr:comp.lang.python': 0.09; 'to:addr:comp.lang.python': 0.09; 'code...': 0.16; 'instantiate': 0.16; 'ops': 0.16; 'subject:function': 0.16; 'worse,': 0.16; 'cc:addr:python-list': 0.16; 'issue.': 0.19; 'cc:2**0': 0.21; 'loop': 0.22; 'cc:no real name:2**0': 0.22; 'header:In-Reply-To:1': 0.22; 'function': 0.26; 'lee': 0.28; 'delay': 0.29; 'cc:addr:python.org': 0.30; 'invoke': 0.30; 'lines': 0.31; 'does': 0.32; 'header:User-Agent:1': 0.34; 'there': 0.34; "can't": 0.34; 'requirements': 0.35; "isn't": 0.35; 'actual': 0.35; 'received:google.com': 0.38; 'subject:: ': 0.38; 'received:74.125': 0.40; 'called': 0.40; 'header:Reply-To:1': 0.71; 'reply-to:no real name:2**0': 0.72; 'placed': 0.72; 'reply- to:addr:googlegroups.com': 0.74; 'gain': 0.79; 'received:74.125.83.56': 0.84; 'received:mail-gw0-f56.google.com': 0.84; 'timer': 0.84; 'subject:call': 0.91 |
| Newsgroups | comp.lang.python |
| Date | Fri, 1 Jul 2011 23:53:00 -0700 (PDT) |
| In-Reply-To | <mailman.543.1309539450.1164.python-list@python.org> |
| Complaints-To | groups-abuse@google.com |
| Injection-Info | glegroupsg2000goo.googlegroups.com; posting-host=84.211.57.92; posting-account=lh8tSAoAAACbC082uMk3mp4mKXoTr0iB |
| User-Agent | G2/1.0 |
| X-Google-Web-Client | true |
| MIME-Version | 1.0 |
| Subject | Re: how to call a function for evry 10 secs |
| From | Rune <rune.strand@gmail.com> |
| To | comp.lang.python@googlegroups.com |
| Content-Type | text/plain; charset=ISO-8859-1 |
| Cc | python-list@python.org |
| X-BeenThere | python-list@python.org |
| X-Mailman-Version | 2.1.12 |
| Precedence | list |
| Reply-To | comp.lang.python@googlegroups.com |
| List-Id | General discussion list for the Python programming language <python-list.python.org> |
| List-Unsubscribe | <http://mail.python.org/mailman/options/python-list>, <mailto:python-list-request@python.org?subject=unsubscribe> |
| List-Archive | <http://mail.python.org/pipermail/python-list> |
| List-Post | <mailto:python-list@python.org> |
| List-Help | <mailto:python-list-request@python.org?subject=help> |
| List-Subscribe | <http://mail.python.org/mailman/listinfo/python-list>, <mailto:python-list-request@python.org?subject=subscribe> |
| Message-ID | <mailman.555.1309589583.1164.python-list@python.org> (permalink) |
| Lines | 9 |
| NNTP-Posting-Host | 2001:888:2000:d::a6 |
| X-Trace | 1309589583 news.xs4all.nl 21852 [2001:888:2000:d::a6]:46159 |
| X-Complaints-To | abuse@xs4all.nl |
| Xref | x330-a1.tempe.blueboxinc.net comp.lang.python:8659 |
Show key headers only | View raw
>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