Path: csiph.com!usenet.pasdenom.info!weretis.net!feeder4.news.weretis.net!rt.uk.eu.org!newsfeed.xs4all.nl!newsfeed2.news.xs4all.nl!xs4all!newsgate.cistron.nl!newsgate.news.xs4all.nl!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.101 X-Spam-Level: * X-Spam-Evidence: '*H*': 0.82; '*S*': 0.02; 'subject:code': 0.07; 'wrote': 0.14; 'mostly': 0.14; '"user': 0.16; '-tkc': 0.16; 'from:addr:python.list': 0.16; 'from:addr:tim.thechases.com': 0.16; 'from:name:tim chase': 0.16; 'roy': 0.16; 'subject:python': 0.16; 'wrote:': 0.18; '>>>': 0.22; 'appears': 0.22; 'import': 0.22; 'skip:i 40': 0.24; 'second': 0.26; 'header:In-Reply-To:1': 0.27; 'chris': 0.29; 'dec': 0.30; 'went': 0.31; 'assert': 0.31; 'fri,': 0.33; 'one,': 0.35; 'there': 0.35; 'charset:us-ascii': 0.36; 'list.': 0.37; 'star': 0.38; 'to:addr:python-list': 0.38; 'pm,': 0.38; 'to:addr:python.org': 0.39; 'changed': 0.39; 'how': 0.40; 'high': 0.63; 'smith': 0.68; 'article': 0.77; '"can': 0.84; 'episode': 0.84; 'ethan': 0.84; 'furman': 0.84; 'received:50.22': 0.84; 'confidence': 0.95; '2013': 0.98 Date: Thu, 26 Dec 2013 20:50:02 -0600 From: Tim Chase To: python-list@python.org Subject: Re: cascading python executions only if return code is 0 In-Reply-To: References: <52b782db$0$6599$c3e8da3$5496439d@news.astraweb.com> <52b7a0e4$0$29994$c3e8da3$5496439d@news.astraweb.com> X-Mailer: Claws Mail 3.8.1 (GTK+ 2.24.10; x86_64-pc-linux-gnu) Importance: low X-Priority: 5 (Lowest) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-AntiAbuse: This header was added to track abuse, please include it with any abuse report X-AntiAbuse: Primary Hostname - boston.accountservergroup.com X-AntiAbuse: Original Domain - python.org X-AntiAbuse: Originator/Caller UID/GID - [47 12] / [47 12] X-AntiAbuse: Sender Address Domain - tim.thechases.com X-Get-Message-Sender-Via: boston.accountservergroup.com: authenticated_id: tim@thechases.com 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: 39 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1388112545 news.xs4all.nl 2856 [2001:888:2000:d::a6]:43294 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:62764 On 2013-12-27 12:44, Chris Angelico wrote: > On Fri, Dec 27, 2013 at 12:37 PM, Roy Smith wrote: > > In article , > > Ethan Furman wrote: > > > >> Mostly I don't want newbies thinking "Hey! I can use assertions > >> for all my confidence testing!" > > > > 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" There appears to be a Whovian at the wheel... >>> from getpass import getuser >>> getuser() 'doctor4' Or perhaps a Star Trek fan: >>> from startrek.movie import episode >>> episode() 4 It's-clearly-past-my-bedtime-or-is-it-before'ly yers, -tkc