Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #45667
| Path | csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!feeder.erje.net!eu.feeder.erje.net!newsfeed.freenet.ag!news2.euro.net!newsgate.cistron.nl!newsgate.news.xs4all.nl!post.news.xs4all.nl!not-for-mail |
|---|---|
| Return-Path | <davea@davea.name> |
| X-Original-To | python-list@python.org |
| Delivered-To | python-list@mail.python.org |
| X-Spam-Status | OK 0.038 |
| X-Spam-Evidence | '*H*': 0.93; '*S*': 0.00; 'argument': 0.05; '21,': 0.07; 'subject:script': 0.09; 'subject:How': 0.10; 'python': 0.11; 'picks': 0.16; 'received:74.208.4.195': 0.16; 'simpson': 0.16; 'subject:run': 0.16; 'zero.': 0.16; 'subject:python': 0.16; 'wrote:': 0.18; 'trying': 0.19; 'value.': 0.19; 'header:User- Agent:1': 0.23; 'second': 0.26; 'header:In-Reply-To:1': 0.27; 'chris': 0.29; 'am,': 0.29; 'start,': 0.30; 'something': 0.35; 'no,': 0.35; 'but': 0.35; 'doing': 0.36; 'useful': 0.36; 'subject:?': 0.36; 'to:addr:python-list': 0.38; 'does': 0.39; 'to:addr:python.org': 0.39; 'length': 0.61; 'numbers': 0.61; "you're": 0.61; "you'll": 0.62; '20,': 0.68; 'received:74.208': 0.68; 'subject:day': 0.69; 'ranges': 0.74; '19.': 0.84; 'length;': 0.84; '2013': 0.98 |
| Date | Tue, 21 May 2013 09:54:06 -0400 |
| From | Dave Angel <davea@davea.name> |
| User-Agent | Mozilla/5.0 (X11; Linux x86_64; rv:17.0) Gecko/20130510 Thunderbird/17.0.6 |
| MIME-Version | 1.0 |
| To | python-list@python.org |
| Subject | Re: How to run a python script twice randomly in a day? |
| References | <CAPTjJmp4VWi_e-TmyvB=o05jfFRB=hE7FzJLm-XjGBJaZBjXmw@mail.gmail.com> <20130521103239.GA24261@cskk.homeip.net> |
| In-Reply-To | <20130521103239.GA24261@cskk.homeip.net> |
| Content-Type | text/plain; charset=ISO-8859-1; format=flowed |
| Content-Transfer-Encoding | 7bit |
| X-Provags-ID | V02:K0:xi5J7haTsjuUUs1k9u0dIqdbfiU0ztijfWt5m5OvIng JTwvKr75FTXc9J/IDaa41cjcIul7DF2+bY5fEOc6e9RI8dFN5D q2IZCdJFfB3be6iwiLW25krBzZ6BwxPJcO6exq0eIN3lrufozG axc/tbZ+hIPLdZVpocmKWcAdyzC38AxbyioAAAgu7PAB+DwYlN omatPBCJX+RjiriIl4DTTFNdFawd59b5xkd625OYqllkCrJA+P DHetDEaBYzOMyq5Wv3O4/6RFbKUy80x5EqFyN/C4DGWCTuATVN 0D6rcVdKsKZzlV9gUYwsRL0XRMXDiQ9fu4UzNBGhQ4+WHEZo+c p5NKHtt/mzVw9QFgp+Vg= |
| 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.1923.1369144465.3114.python-list@python.org> (permalink) |
| Lines | 22 |
| NNTP-Posting-Host | 2001:888:2000:d::a6 |
| X-Trace | 1369144465 news.xs4all.nl 15987 [2001:888:2000:d::a6]:42573 |
| X-Complaints-To | abuse@xs4all.nl |
| Xref | csiph.com comp.lang.python:45667 |
Show key headers only | View raw
On 05/21/2013 06:32 AM, Cameron Simpson wrote: > 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. > No, it's only happens to look like length when start is zero. So as a mnemonic, it's highly misleading. -- DaveA
Back to comp.lang.python | Previous | Next | Find similar | Unroll thread
Re: How to run a python script twice randomly in a day? Dave Angel <davea@davea.name> - 2013-05-21 09:54 -0400
csiph-web