Path: csiph.com!fu-berlin.de!uni-berlin.de!not-for-mail From: Ben Finney Newsgroups: comp.lang.python Subject: Re: sys.exit(1) vs raise SystemExit vs raise Date: Sun, 17 Apr 2016 06:24:14 +1000 Lines: 23 Message-ID: References: <20160416034833.GA24653@cskk.homeip.net> <858u0ew5qg.fsf@benfinney.id.au> <1460784872.1843058.580428001.63445E11@webmail.messagingengine.com> <85zisuujn9.fsf@benfinney.id.au> <85lh4duwsx.fsf@benfinney.id.au> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Trace: news.uni-berlin.de h+He4icELF7IX4uwoGLTgQo1HdEhp0C0CNB9sSBbQVXg== Cancel-Lock: sha1:sR/9FK8bwN6K+TWwoK8coWA+6bA= Return-Path: X-Original-To: python-list@python.org Delivered-To: python-list@mail.python.org X-Spam-Status: OK 0.018 X-Spam-Evidence: '*H*': 0.96; '*S*': 0.00; 'exit': 0.07; 'received:80.91': 0.09; 'received:80.91.229': 0.09; 'received:gmane.org': 0.09; 'received:list': 0.09; '2016': 0.16; ':-/': 0.16; 'error"': 0.16; 'fine;': 0.16; 'received:80.91.229.3': 0.16; 'received:io': 0.16; 'received:plane.gmane.org': 0.16; 'received:psf.io': 0.16; '(the': 0.22; 'constant': 0.22; 'defined': 0.23; 'seems': 0.23; 'sat,': 0.23; 'unix': 0.24; 'header:User-Agent:1': 0.26; 'header:X -Complaints-To:1': 0.26; 'values': 0.28; '"no': 0.29; 'concern': 0.29; 'system,': 0.30; 'subject:) ': 0.32; 'maybe': 0.33; 'rule': 0.33; 'should': 0.36; 'to:addr:python-list': 0.36; 'subject:: ': 0.37; 'expect': 0.37; 'operating': 0.37; 'received:org': 0.37; 'to:addr:python.org': 0.40; 'per': 0.62; 'strange': 0.63; 'you.': 0.64; 'percent': 0.66; '(according': 0.84; '+1000,': 0.84; '_o__)': 0.84; 'received:125': 0.84; 'dennis': 0.91 X-Injected-Via-Gmane: http://gmane.org/ X-Gmane-NNTP-Posting-Host: jigong.madmonks.org X-Public-Key-ID: 0xAC128405 X-Public-Key-Fingerprint: 517C F14B B2F3 98B0 CB35 4855 B8B2 4C06 AC12 8405 X-Public-Key-URL: http://www.benfinney.id.au/contact/bfinney-pubkey.asc X-Post-From: Ben Finney User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.4 (gnu/linux) X-BeenThere: python-list@python.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: General discussion list for the Python programming language List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-Mailman-Original-Message-ID: <85lh4duwsx.fsf@benfinney.id.au> X-Mailman-Original-References: <20160416034833.GA24653@cskk.homeip.net> <858u0ew5qg.fsf@benfinney.id.au> <1460784872.1843058.580428001.63445E11@webmail.messagingengine.com> <85zisuujn9.fsf@benfinney.id.au> Xref: csiph.com comp.lang.python:107112 Dennis Lee Bieber writes: > On Sat, 16 Apr 2016 16:56:10 +1000, Ben Finney > declaimed the following: > > >It seems strange that even the constant for “no error” exit status > >should be defined only for Unix :-/ > > VMS had a whole slew of "no error" status values That's fine; those values can be defined per operating system, and maybe they should be. My concern is that (according to the documentation) the “no error” exit status *isn't even defined* on non-Unix operating systems, as though no other OS uses it. -- \ “Do unto others twenty-five percent better than you expect them | `\ to do unto you. (The twenty-five percent is [to correct] for | _o__) error.)” —Linus Pauling's Golden Rule | Ben Finney