Path: csiph.com!usenet.pasdenom.info!weretis.net!feeder4.news.weretis.net!rt.uk.eu.org!newsfeed.xs4all.nl!newsfeed1.news.xs4all.nl!xs4all!post.news.xs4all.nl!not-for-mail Return-Path: X-Original-To: python-list@python.org Delivered-To: python-list@mail.python.org X-Spam-Status: OK 0.026 X-Spam-Evidence: '*H*': 0.95; '*S*': 0.00; 'true,': 0.05; 'subject:code': 0.07; 'cc:addr:python-list': 0.11; 'wrote': 0.14; '"user': 0.16; '>>on': 0.16; 'from:addr:rosuav': 0.16; 'from:name:chris angelico': 0.16; 'roy': 0.16; 'subject:python': 0.16; 'wrote:': 0.18; 'user.': 0.19; '>>>': 0.22; 'cc:addr:python.org': 0.22; 'cc:2**0': 0.24; 'second': 0.26; 'header:In-Reply-To:1': 0.27; 'chris': 0.29; 'dec': 0.30; 'message-id:@mail.gmail.com': 0.30; 'went': 0.31; 'assert': 0.31; "we're": 0.32; 'fri,': 0.33; 'maybe': 0.34; 'could': 0.34; 'one,': 0.35; 'but': 0.35; 'received:google.com': 0.35; 'list.': 0.37; 'pm,': 0.38; 'changed': 0.39; 'how': 0.40; 'high': 0.63; 'more': 0.64; 'side': 0.67; 'smith': 0.68; '"can': 0.84; 'to:none': 0.92; '2013': 0.98 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:cc :content-type; bh=Q0v0pYfg/xQRbW5hw6pYs1mQghXYa8wGjIA2fQ1q280=; b=P1DCMPQDEPXJiIcMyiY25xxEzf9ADdsG8Pvq4+PiBH2dqyAtW+rAtrleNBRncrXZOv Lt03oOfuPTls9TNbvbT1wPmZCNPgJfPWxPd3WClBwTXBC3qLqnKMLMT7SXIGvuOICUa7 6PBQNZQtUzb+g8GzZfG5WBR3Ri4+5Lqcxq89SZldJdXr7+oNAD8qrXQFmzpiGtU5aOSC Bd8e8OQQgkWFq+tApQ3hX4LxgDog9AGul454H4uATiDg0Msu64P6pYsVQyxG1t+iIw5C A/pUP82s2tJZ5TwlPGvfUMQbdNXpp5+OcvcRPzjmT5wJzYNKvcyFIL5xmdsAnPXaYoZW s8ZQ== MIME-Version: 1.0 X-Received: by 10.66.102.39 with SMTP id fl7mr47165325pab.43.1388111261985; Thu, 26 Dec 2013 18:27:41 -0800 (PST) In-Reply-To: References: <52b782db$0$6599$c3e8da3$5496439d@news.astraweb.com> <52b7a0e4$0$29994$c3e8da3$5496439d@news.astraweb.com> Date: Fri, 27 Dec 2013 13:27:41 +1100 Subject: Re: cascading python executions only if return code is 0 From: Chris Angelico Cc: "python-list@python.org" Content-Type: text/plain; charset=UTF-8 X-BeenThere: python-list@python.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: General discussion list for the Python programming language List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Newsgroups: comp.lang.python Message-ID: Lines: 21 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1388111765 news.xs4all.nl 2939 [2001:888:2000:d::a6]:40666 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:62763 On Fri, Dec 27, 2013 at 1:20 PM, Dennis Lee Bieber wrote: > On Fri, 27 Dec 2013 12:44:35 +1100, Chris Angelico > declaimed the following: > >>On Fri, Dec 27, 2013 at 12:37 PM, Roy Smith wrote: >>> How about this one, that I wrote yesterday; >>> >>> assert second >= self.current_second, "time went backwards" >>> >>> I think that's pretty high up on the "can never happen" list. >> >>assert second >= self.current_second, "user changed the clock" >> > Why blame the user if an NTP synch made the adjustment? True, it could have been NTP, or maybe the original assert was right and we're on the other side of an event horizon. But it's much more fun to blame the user. ChrisA