Path: csiph.com!usenet.pasdenom.info!news.albasani.net!rt.uk.eu.org!newsfeed.xs4all.nl!newsfeed3.news.xs4all.nl!xs4all!news.tele.dk!news.tele.dk!small.news.tele.dk!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.000 X-Spam-Evidence: '*H*': 1.00; '*S*': 0.00; 'interpreter': 0.05; '"""': 0.07; 'odd': 0.07; 'subject:code': 0.07; '(aka': 0.09; '32-bit': 0.09; 'bits': 0.09; 'desired,': 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; 'stored': 0.12; 'conforming': 0.16; 'corresponds': 0.16; 'hexadecimal': 0.16; 'message-id:@4ax.com': 0.16; 'received:80.91.229.3': 0.16; 'received:plane.gmane.org': 0.16; 'simpson': 0.16; 'subject:python': 0.16; 'bit': 0.19; 'command': 0.22; 'url:home': 0.24; 'mon,': 0.24; 'code:': 0.26; 'defined': 0.27; 'header:X -Complaints-To:1': 0.27; 'point': 0.28; 'testing': 0.29; 'dec': 0.30; 'code': 0.31; 'message.': 0.35; 'problem': 0.35; 'skip:> 10': 0.36; 'charset:us-ascii': 0.36; 'level': 0.37; 'convention': 0.38; 'saves': 0.38; 'to:addr:python-list': 0.38; 'to:addr:python.org': 0.39; 'received:org': 0.40; 'even': 0.60; 'reserved': 0.61; 'success': 0.61; 'skip:1 20': 0.65; 'results': 0.69; 'facility,': 0.91; 'received:108': 0.93; '2013': 0.98 X-Injected-Via-Gmane: http://gmane.org/ To: python-list@python.org From: Dennis Lee Bieber Subject: Re: cascading python executions only if return code is 0 Date: Sun, 22 Dec 2013 22:10:47 -0500 Organization: IISS Elusive Unicorn References: <20131222221125.GA44179@cskk.homeip.net> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Gmane-NNTP-Posting-Host: adsl-108-68-178-129.dsl.klmzmi.sbcglobal.net X-Newsreader: Forte Agent 6.00/32.1186 X-No-Archive: YES 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: 31 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1387768252 news.xs4all.nl 2829 [2001:888:2000:d::a6]:52664 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:62579 On Mon, 23 Dec 2013 09:11:25 +1100, Cameron Simpson declaimed the following: > >Now, I do take the point that these functions seem to take the >unix-exit-code convention that zero is success (leaving the many >values of "non-zero" to indicate flavours of failure as desired, >as we have many types of exceptions). > 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 """ Each condition code corresponds to a system message. The command interpreter saves the condition code as a 32-bit longword defined as the reserved global symbol $STATUS. The condition code stored in $STATUS is a hexadecimal number conforming to the format of an OpenVMS message code: Bits 0--2 contain the severity level of the message. Bits 3--15 contain the number of the corresponding message. Bits 16--27 contain a number for the software component, or facility, that generated the message. Bits 28--31 contain internal control flags. """ (Boolean testing only examined bit 0) -- Wulfraed Dennis Lee Bieber AF6VN wlfraed@ix.netcom.com HTTP://wlfraed.home.netcom.com/