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


Groups > comp.lang.python > #107082 > unrolled thread

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

Started byBen Finney <ben+python@benfinney.id.au>
First post2016-04-16 16:56 +1000
Last post2016-04-16 16:56 +1000
Articles 1 — 1 participant

Back to article view | Back to comp.lang.python

This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by below is the oldest one visible, not the original post.


Contents

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

#107082 — Re: sys.exit(1) vs raise SystemExit vs raise

FromBen Finney <ben+python@benfinney.id.au>
Date2016-04-16 16:56 +1000
SubjectRe: sys.exit(1) vs raise SystemExit vs raise
Message-ID<mailman.41.1460790007.6324.python-list@python.org>
Stephen Hansen <me@ixokai.io> writes:

> > * You can use named constants from ‘os’ for the purpose of specifying
> >   exit status numbers.
>
> Only on *nix.

Hmm, I didn't see that. It seems strange that even the constant for “no
error” exit status should be defined only for Unix :-/

-- 
 \         “Geeks like to think that they can ignore politics. You can |
  `\        leave politics alone, but politics won't leave you alone.” |
_o__)                                 —Richard M. Stallman, 2002-07-26 |
Ben Finney

[toc] | [standalone]


Back to top | Article view | comp.lang.python


csiph-web