Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #107112

Re: sys.exit(1) vs raise SystemExit vs raise

From Ben Finney <ben+python@benfinney.id.au>
Newsgroups comp.lang.python
Subject Re: sys.exit(1) vs raise SystemExit vs raise
Date 2016-04-17 06:24 +1000
Message-ID <mailman.62.1460838306.6324.python-list@python.org> (permalink)
References (2 earlier) <858u0ew5qg.fsf@benfinney.id.au> <1460784872.1843058.580428001.63445E11@webmail.messagingengine.com> <85zisuujn9.fsf@benfinney.id.au> <lno4hb1hpnqfqfmt1cq0r8gmhm4fmq1ajf@4ax.com> <85lh4duwsx.fsf@benfinney.id.au>

Show all headers | View raw


Dennis Lee Bieber <wlfraed@ix.netcom.com> writes:

> On Sat, 16 Apr 2016 16:56:10 +1000, Ben Finney <ben+python@benfinney.id.au>
> 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

Back to comp.lang.python | Previous | Next | Find similar | Unroll thread


Thread

Re: sys.exit(1) vs raise SystemExit vs raise Ben Finney <ben+python@benfinney.id.au> - 2016-04-17 06:24 +1000

csiph-web