Path: csiph.com!newsfeed.hal-mli.net!feeder3.hal-mli.net!newsfeed.hal-mli.net!feeder1.hal-mli.net!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.008 X-Spam-Evidence: '*H*': 0.98; '*S*': 0.00; 'from:addr:yahoo.co.uk': 0.04; 'subject:code': 0.07; 'lawrence': 0.09; 'received:80.91': 0.09; 'received:80.91.229': 0.09; 'received:gmane.org': 0.09; 'received:list': 0.09; 'wrote': 0.14; 'language.': 0.14; 'mostly': 0.14; '"user': 0.16; 'received:80.91.229.3': 0.16; 'received:plane.gmane.org': 0.16; 'roy': 0.16; 'subject:python': 0.16; 'language': 0.16; 'wrote:': 0.18; '>>>': 0.22; 'admin': 0.22; 'header:User-Agent:1': 0.23; 'second': 0.26; 'header:X -Complaints-To:1': 0.27; '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; 'too': 0.37; 'list.': 0.37; 'to:addr:python-list': 0.38; 'pm,': 0.38; 'to:addr:python.org': 0.39; 'changed': 0.39; 'received:org': 0.40; 'how': 0.40; 'high': 0.63; 'our': 0.64; 'smith': 0.68; 'article': 0.77; '"can': 0.84; 'ethan': 0.84; 'furman': 0.84; 'confidence': 0.95; '2013': 0.98 X-Injected-Via-Gmane: http://gmane.org/ To: python-list@python.org From: Mark Lawrence Subject: Re: cascading python executions only if return code is 0 Date: Fri, 27 Dec 2013 18:00:38 +0000 References: <52b782db$0$6599$c3e8da3$5496439d@news.astraweb.com> <52b7a0e4$0$29994$c3e8da3$5496439d@news.astraweb.com> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Gmane-NNTP-Posting-Host: host-78-147-179-237.as13285.net User-Agent: Mozilla/5.0 (Windows NT 6.1; rv:24.0) Gecko/20100101 Thunderbird/24.2.0 In-Reply-To: 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: 27 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1388167261 news.xs4all.nl 2889 [2001:888:2000:d::a6]:49022 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:62814 On 27/12/2013 01: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" > > ChrisA > assert "shoot admin who gave user too much privilege" ? -- My fellow Pythonistas, ask not what our language can do for you, ask what you can do for our language. Mark Lawrence