Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #107079
| From | Stephen Hansen <me@ixokai.io> |
|---|---|
| Newsgroups | comp.lang.python |
| Subject | Re: sys.exit(1) vs raise SystemExit vs raise |
| Date | 2016-04-15 22:34 -0700 |
| Message-ID | <mailman.38.1460786560.6324.python-list@python.org> (permalink) |
| References | <CACT3xuUFeOXbjwiWhgZ90UMPi5xXQaj9HpxU3Aepz2Hr8Kw42Q@mail.gmail.com> <20160416034833.GA24653@cskk.homeip.net> <858u0ew5qg.fsf@benfinney.id.au> <1460784872.1843058.580428001.63445E11@webmail.messagingengine.com> |
> * You can use named constants from ‘os’ for the purpose of specifying > exit status numbers. Only on *nix. Even then it varies from platform to platform which constants you can use. I'd prefer to document the return status and use numbers/my own constants directly, that way supporting any platform (even windows, where its %ERRORLEVEL% --S
Back to comp.lang.python | Previous | Next | Find similar | Unroll thread
Re: sys.exit(1) vs raise SystemExit vs raise Stephen Hansen <me@ixokai.io> - 2016-04-15 22:34 -0700
csiph-web