Path: csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!feeder.erje.net!eu.feeder.erje.net!newsfeed.xs4all.nl!newsfeed2.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.001 X-Spam-Evidence: '*H*': 1.00; '*S*': 0.00; 'from:addr:yahoo.co.uk': 0.04; 'odd': 0.07; 'subject:code': 0.07; '(aka': 0.09; 'lawrence': 0.09; 'received:80.91': 0.09; 'received:80.91.229': 0.09; 'received:gmane.org': 0.09; 'received:list': 0.09; 'true)': 0.09; 'language.': 0.14; '23,': 0.16; 'malloc': 0.16; 'nonzero': 0.16; 'received:80.91.229.3': 0.16; 'received:plane.gmane.org': 0.16; 'unix,': 0.16; 'subject:python': 0.16; 'language': 0.16; 'wrote:': 0.18; 'header:User-Agent:1': 0.23; 'case.': 0.24; 'mon,': 0.24; 'header:X-Complaints-To:1': 0.27; 'header:In-Reply-To:1': 0.27; 'chris': 0.29; 'dec': 0.30; 'returned': 0.30; "i'm": 0.30; 'code': 0.31; 'another': 0.32; 'quite': 0.32; 'problem': 0.35; 'except': 0.35; 'similar': 0.36; 'error.': 0.37; 'to:addr:python-list': 0.38; 'pm,': 0.38; 'to:addr:python.org': 0.39; 'received:org': 0.40; 'even': 0.60; 'success': 0.61; 'our': 0.64; 'skip:1 20': 0.65; 'results': 0.69; 'received:2': 0.84; 'thing,': 0.91; '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: Mon, 23 Dec 2013 03:43:01 +0000 References: <20131222221125.GA44179@cskk.homeip.net> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Gmane-NNTP-Posting-Host: host-2-98-193-30.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: 23 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1387770117 news.xs4all.nl 2838 [2001:888:2000:d::a6]:45361 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:62587 On 23/12/2013 03:22, Chris Angelico wrote: > On Mon, Dec 23, 2013 at 2:10 PM, Dennis Lee Bieber > wrote: >> Having spent 22 years with VMS, 0 -> success is still a problem to me. >> Odd result codes (aka True) were 1-success/3-information, even results >> (False) were 0-warning/2-error/4-fatal > > Having spent a similar amount of time with Unix, C, and various APIs, > I'm quite used to 0 meaning success and nonzero meaning error. > > ChrisA > Another C thing to complain about, with functions like malloc the status code and value returned are one and the same thing, except that NULL is failure in this case. -- My fellow Pythonistas, ask not what our language can do for you, ask what you can do for our language. Mark Lawrence