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


Groups > comp.lang.python > #41434

Re: What are some other way to rewrite this if block?

Path csiph.com!usenet.pasdenom.info!news.albasani.net!news.stack.nl!newsfeed.xs4all.nl!newsfeed3.news.xs4all.nl!xs4all!post.news.xs4all.nl!not-for-mail
Return-Path <rosuav@gmail.com>
X-Original-To python-list@python.org
Delivered-To python-list@mail.python.org
X-Spam-Status OK 0.067
X-Spam-Evidence '*H*': 0.87; '*S*': 0.00; 'say,': 0.05; 'expectation': 0.09; 'happen.': 0.09; 'oh,': 0.09; 'from:addr:rosuav': 0.16; 'from:name:chris angelico': 0.16; 'wrote:': 0.17; 'integer': 0.17; "i've": 0.23; 'header:In-Reply- To:1': 0.25; 'am,': 0.27; 'message-id:@mail.gmail.com': 0.27; 'arrival': 0.29; "d'aprano": 0.29; 'steven': 0.29; 'subject:other': 0.29; 'subject:some': 0.29; 'seconds': 0.30; 'could': 0.32; 'to:addr:python-list': 0.33; "can't": 0.34; 'received:google.com': 0.34; 'third': 0.34; 'subject:?': 0.35; 'received:209.85': 0.35; 'there': 0.35; 'but': 0.36; 'received:209': 0.37; 'subject:: ': 0.38; 'to:addr:python.org': 0.39; 'your': 0.60; 'chance': 0.61; 'times': 0.63; 'more': 0.63; 'late.': 0.65; 'hours': 0.66; 'subject:this': 0.84; '2013': 0.84; 'wait,': 0.93
DKIM-Signature v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:x-received:in-reply-to:references:date:message-id :subject:from:to:content-type; bh=+CI20kgQ4p38bx4LicsvSTxy02LsuczaVN79BH6JqF0=; b=Kpk0dbD22gJoTQFmkfqhZbCNa1ZfCAcwr9XBivEhiPO9YwV2srAR4Fxiu+qkrVAzD1 1VQmR3lAURCdvftEkTOkf7RuEpxqn4BpfzVTDZj9pJ36Itgdb9tIeyMXXV3a5jd4T5Q1 ZVR01awQsShTOC1II+/X/shJ25qRg0jZLOG6nd/ESbRRppay/sWNbDh60yNHp0AnR9Xa m1dDruOldeQSHadiIRRiOd/Z8OtFre6dJvhY7z5d8/leE9hcKC2luMe0pRx8/sAy0/rf 8wLwIZ2uxag8yedhcS8K/0YtTUxr1kOBvTILPYTxi7DCoeb6fWO8XJgjZuPRIbjoSTPM bkog==
MIME-Version 1.0
X-Received by 10.220.103.7 with SMTP id i7mr19943474vco.7.1363620292504; Mon, 18 Mar 2013 08:24:52 -0700 (PDT)
In-Reply-To <51472e56$0$6599$c3e8da3$5496439d@news.astraweb.com>
References <mailman.3444.1363614983.2939.python-list@python.org> <51472e56$0$6599$c3e8da3$5496439d@news.astraweb.com>
Date Tue, 19 Mar 2013 02:24:52 +1100
Subject Re: What are some other way to rewrite this if block?
From Chris Angelico <rosuav@gmail.com>
To python-list@python.org
Content-Type text/plain; charset=ISO-8859-1
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.3457.1363620300.2939.python-list@python.org> (permalink)
Lines 13
NNTP-Posting-Host 2001:888:2000:d::a6
X-Trace 1363620300 news.xs4all.nl 6861 [2001:888:2000:d::a6]:52850
X-Complaints-To abuse@xs4all.nl
Xref csiph.com comp.lang.python:41434

Show key headers only | View raw


On Tue, Mar 19, 2013 at 2:10 AM, Steven D'Aprano
<steve+comp.lang.python@pearwood.info> wrote:
> A third weakness is that you can't allow for arrivals more than 12 hours
> early or late.

Oh, but that'll NEVER happen.

Oh wait, I've been on a service that was 12 hours late.

Is there any chance that you could do your times of arrival and
expectation in, say, integer seconds since 1970?

ChrisA

Back to comp.lang.python | Previous | NextPrevious in thread | Find similar | Unroll thread


Thread

What are some other way to rewrite this if block? Santosh Kumar <sntshkmr60@gmail.com> - 2013-03-18 19:26 +0530
  Re: What are some other way to rewrite this if block? Jussi Piitulainen <jpiitula@ling.helsinki.fi> - 2013-03-18 16:10 +0200
    Re: What are some other way to rewrite this if block? Duncan Booth <duncan.booth@invalid.invalid> - 2013-03-18 14:43 +0000
      Re: What are some other way to rewrite this if block? Jussi Piitulainen <jpiitula@ling.helsinki.fi> - 2013-03-18 16:53 +0200
  Re: What are some other way to rewrite this if block? "Yves S. Garret" <yoursurrogategod@gmail.com> - 2013-03-18 07:18 -0700
  Re: What are some other way to rewrite this if block? Steven D'Aprano <steve+comp.lang.python@pearwood.info> - 2013-03-18 15:10 +0000
    Re: What are some other way to rewrite this if block? Chris Angelico <rosuav@gmail.com> - 2013-03-19 02:24 +1100

csiph-web