Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #45661
| Path | csiph.com!usenet.pasdenom.info!aioe.org!news.stack.nl!newsfeed.xs4all.nl!newsfeed1.news.xs4all.nl!xs4all!post.news.xs4all.nl!not-for-mail |
|---|---|
| Return-Path | <cameron@cskk.homeip.net> |
| X-Original-To | python-list@python.org |
| Delivered-To | python-list@mail.python.org |
| X-Spam-Status | OK 0.007 |
| X-Spam-Evidence | '*H*': 0.99; '*S*': 0.00; 'argument': 0.05; '21,': 0.07; 'tries': 0.07; 'subject:script': 0.09; 'subject:How': 0.10; 'cc:addr:python-list': 0.11; 'python': 0.11; 'from:addr:cs': 0.16; 'from:addr:zip.com.au': 0.16; 'from:name:cameron simpson': 0.16; 'message-id:@cskk.homeip.net': 0.16; 'picks': 0.16; 'received:211.29': 0.16; 'received:211.29.132': 0.16; 'received:optusnet.com.au': 0.16; 'received:syd.optusnet.com.au': 0.16; 'simpson': 0.16; 'subject:run': 0.16; 'subject:python': 0.16; 'wrote:': 0.18; 'trying': 0.19; 'value.': 0.19; 'cc:addr:python.org': 0.22; 'header:User-Agent:1': 0.23; 'cheers,': 0.24; 'cc:2**0': 0.24; 'cc:no real name:2**0': 0.24; 'second': 0.26; 'header:In-Reply-To:1': 0.27; 'chris': 0.29; 'am,': 0.29; 'start,': 0.30; 'anyone': 0.31; 'something': 0.35; 'but': 0.35; 'received:com.au': 0.36; 'doing': 0.36; 'useful': 0.36; 'charset:us-ascii': 0.36; 'subject:?': 0.36; 'received:211': 0.38; 'does': 0.39; 'tell': 0.60; 'numbers': 0.61; "you're": 0.61; 'content-disposition:inline': 0.62; "you'll": 0.62; 'different': 0.65; 'to:addr:gmail.com': 0.65; 'life': 0.66; '20,': 0.68; 'subject:day': 0.69; 'ranges': 0.74; '19.': 0.84; 'length;': 0.84; '2013': 0.98 |
| Date | Tue, 21 May 2013 20:32:39 +1000 |
| From | Cameron Simpson <cs@zip.com.au> |
| To | Chris Angelico <rosuav@gmail.com> |
| Subject | Re: How to run a python script twice randomly in a day? |
| MIME-Version | 1.0 |
| Content-Type | text/plain; charset=us-ascii |
| Content-Disposition | inline |
| In-Reply-To | <CAPTjJmp4VWi_e-TmyvB=o05jfFRB=hE7FzJLm-XjGBJaZBjXmw@mail.gmail.com> |
| User-Agent | Mutt/1.5.21 (2010-09-15) |
| References | <CAPTjJmp4VWi_e-TmyvB=o05jfFRB=hE7FzJLm-XjGBJaZBjXmw@mail.gmail.com> |
| X-Optus-CM-Score | 0 |
| X-Optus-CM-Analysis | v=2.0 cv=e/de0tV/ c=1 sm=1 a=wom5GMh1gUkA:10 a=nhmRsZCgQ00A:10 a=kj9zAlcOel0A:10 a=vrnE16BAAAAA:8 a=ZtCCktOnAAAA:8 a=at-lseB3AMEA:10 a=pGLkceISAAAA:8 a=sb8wMeaRaV6tVQCy5f8A:9 a=CjuIK1q_8ugA:10 a=MSl-tDqOz04A:10 a=-V_qB-wsQrDR7ddR:21 a=cJ1DTqBEtNHWFvvd:21 a=ChdAjXE5lkUvdteQbhpnkQ==:117 |
| Cc | python-list@python.org |
| X-BeenThere | python-list@python.org |
| X-Mailman-Version | 2.1.15 |
| Precedence | list |
| 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> |
| Newsgroups | comp.lang.python |
| Message-ID | <mailman.1919.1369132390.3114.python-list@python.org> (permalink) |
| Lines | 19 |
| NNTP-Posting-Host | 2001:888:2000:d::a6 |
| X-Trace | 1369132390 news.xs4all.nl 15992 [2001:888:2000:d::a6]:58977 |
| X-Complaints-To | abuse@xs4all.nl |
| Xref | csiph.com comp.lang.python:45661 |
Show key headers only | View raw
On 21May2013 17:56, Chris Angelico <rosuav@gmail.com> wrote: | On Tue, May 21, 2013 at 11:12 AM, Cameron Simpson <cs@zip.com.au> wrote: | > - randrange() is like other python ranges: it does not include the end value. | > So your call picks a number from 0..58, not 0..59. | > Say randrange(0,60). Think "start, length". | | Nitpick: It's not start, length; it's start, stop-before. If the start | is 10 and the second argument is 20, you'll get numbers from 10 to 19. | But your conclusion is still accurate :) But it's still a useful thing to think when you're trying to reason about ranges unless you're doing something unusual. Cheers, -- Cameron Simpson <cs@zip.com.au> Life IS pain, highness... anyone who tries to tell you different is trying to sell you something. - Wesley, The_Princess_Bride
Back to comp.lang.python | Previous | Next | Find similar | Unroll thread
Re: How to run a python script twice randomly in a day? Cameron Simpson <cs@zip.com.au> - 2013-05-21 20:32 +1000
csiph-web