Path: csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!feeder.erje.net!eu.feeder.erje.net!newsfeed.xs4all.nl!newsfeed4.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.014 X-Spam-Evidence: '*H*': 0.97; '*S*': 0.00; 'odd': 0.07; 'subject:code': 0.07; '(aka': 0.09; 'true)': 0.09; 'cc:addr :python-list': 0.11; '23,': 0.16; 'from:addr:rosuav': 0.16; 'from:name:chris angelico': 0.16; 'nonzero': 0.16; 'unix,': 0.16; 'subject:python': 0.16; 'wrote:': 0.18; 'cc:addr:python.org': 0.22; 'mon,': 0.24; 'cc:2**0': 0.24; 'header:In-Reply-To:1': 0.27; 'dec': 0.30; 'message-id:@mail.gmail.com': 0.30; "i'm": 0.30; 'quite': 0.32; 'problem': 0.35; 'received:google.com': 0.35; 'similar': 0.36; 'error.': 0.37; 'pm,': 0.38; 'even': 0.60; 'success': 0.61; 'skip:1 20': 0.65; 'results': 0.69; '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=3S0d0QlrDqAJFyfRd7jYDzzC5+d47IsAlf2ox9M7Mq8=; b=pEPfk+H0COefKs4DEc1uYNQj6kcOJfl4uka4YQUNFcaCO5khdNkIBxUilJ+qwkA+9F lWn1fZYeHlZZjaENqzcRq+afS6RlYFrvroAN9kn3+rJGO3kX9Jqc/hp4UT1SCvHSvMlQ pcKQvwqvD8NTBo9rHH0bfAaa3mZJhbvj0qVyf4ZlvvKr4r9PI5kqw2AAfCDlZxoJs2D8 07M8a8T/y1Hz/fYbmSqCr8HifT37HPLjaa6SLlDRlBPv7x1H2PuytDkod4cizdMhMZvG K7jhVJwXFJYF+g64OFjn+K9bAlnPmBCXKvdTJ8EFvjU971km7DWmIWHZs4wk8BUSiLQa 3qCQ== MIME-Version: 1.0 X-Received: by 10.66.66.42 with SMTP id c10mr23124012pat.98.1387768950811; Sun, 22 Dec 2013 19:22:30 -0800 (PST) In-Reply-To: References: <20131222221125.GA44179@cskk.homeip.net> Date: Mon, 23 Dec 2013 14:22:30 +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: 10 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1387768954 news.xs4all.nl 2840 [2001:888:2000:d::a6]:36722 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:62584 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