Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #107084
| Path | csiph.com!fu-berlin.de!uni-berlin.de!not-for-mail |
|---|---|
| From | Chris Angelico <rosuav@gmail.com> |
| Newsgroups | comp.lang.python |
| Subject | Re: sys.exit(1) vs raise SystemExit vs raise |
| Date | Sat, 16 Apr 2016 17:08:43 +1000 |
| Lines | 17 |
| Message-ID | <mailman.42.1460790525.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> <85zisuujn9.fsf@benfinney.id.au> <CAPTjJmobZgyEAiqLqTr5avfxWsX6S4EFyOYRUx6f+QjzVT3XGQ@mail.gmail.com> |
| Mime-Version | 1.0 |
| Content-Type | text/plain; charset=UTF-8 |
| Content-Transfer-Encoding | quoted-printable |
| X-Trace | news.uni-berlin.de zR3SOQfxzhIEAQ+qTLzS3gDAiI0/ZALfld/FgfT2oSEg== |
| Return-Path | <rosuav@gmail.com> |
| X-Original-To | python-list@python.org |
| Delivered-To | python-list@mail.python.org |
| X-Spam-Status | OK 0.001 |
| X-Spam-Evidence | '*H*': 1.00; '*S*': 0.00; '16,': 0.03; 'received:209.85.223': 0.03; 'exit': 0.07; 'cc:addr:python-list': 0.09; 'specifying': 0.09; '2016': 0.16; ':-/': 0.16; 'constants': 0.16; 'from:addr:rosuav': 0.16; 'from:name:chris angelico': 0.16; 'received:io': 0.16; 'received:psf.io': 0.16; 'wrote:': 0.16; 'cc:2**0': 0.20; 'cc:addr:python.org': 0.20; 'constant': 0.22; 'stephen': 0.22; 'defined': 0.23; 'seems': 0.23; 'sat,': 0.23; 'unix': 0.24; 'header:In-Reply-To:1': 0.24; 'error': 0.27; 'message-id:@mail.gmail.com': 0.27; 'that.': 0.30; 'subject:) ': 0.32; 'maybe': 0.33; 'received:google.com': 0.35; 'should': 0.36; 'received:209.85': 0.36; 'pm,': 0.36; 'subject:: ': 0.37; 'received:209': 0.38; 'anything': 0.38; "didn't": 0.39; 'strange': 0.63; 'chrisa': 0.84; 'to:none': 0.91 |
| DKIM-Signature | v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:cc :content-transfer-encoding; bh=tumIMDr53ZOXtB3INS4K0K9i/S9iX7GmPEI+lOzYjc4=; b=E9CNoO5L2Zty6+QiXB9UGVhgd1w68I1pNox2sxc9Ydenq1l/x/YsTASDWbE0BpmnMN k6iVLqTDe+lywtZr2TOV7TfNCutugrxmscpxc2IxDFs4iWDiL1+DvuG2YE9R2GNRcCsF cHGIR7SInWdFwJWyJjx1BwY6YMfZP9iei6pdugBPvMuQjKZsoTRye+ceC/5GisHLteIm NdLzwYJTAliUnfTAFC2qFxzVn1w2I5IUyl5UeaM86ZnAFdzZOGfHnxDKQcvY22EKP0SW E4Sb/xxxTlSdYr03eDPYA33Lz7xNfPqN/UVCDbwaxOVi68qZcaE2bl3Lp1swXtIVaC8H bT5Q== |
| X-Google-DKIM-Signature | v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:in-reply-to:references:date :message-id:subject:from:cc:content-transfer-encoding; bh=tumIMDr53ZOXtB3INS4K0K9i/S9iX7GmPEI+lOzYjc4=; b=VkUH9P+9a7QXFX5yWm1fD4LbVyJ+BE7ygt68lwVblwqHWW8aDxCvgDcV0pBLpao/DW 2o8mDy8Y6ChoHBRCZfH5nA9JWdut9XRIudMOmJLywZBXYYk79bxwblxJGVln9Dvo9NOV DvEjLINv0w0H61/wc7Z6HWFbSLcypqO670NMTxpucTqgct96ibdwRIanWJu5R2gcFngh 57rjjYsWgdvUyDPXN0a7qP0WvJV024/nk1wY7/F9/HN66hiSAqcHYoX5mvJ1xyXnfU87 7gSiv987wvY4tzswY2dcQh3/9dfH7irW6GEqm0HT0pnb1Ya4fbhTMuYwNv0+jZAPMgkj jnZA== |
| X-Gm-Message-State | AOPr4FUSNAXpo1pnOsU9skZHKaWyzKZa1ePJJR8Id4esMnK5Ss4yV3MRsBnSFGtE3DXzXm3Ltyg4+PZk6tV82w== |
| X-Received | by 10.107.18.147 with SMTP id 19mr24785466ios.157.1460790523716; Sat, 16 Apr 2016 00:08:43 -0700 (PDT) |
| In-Reply-To | <85zisuujn9.fsf@benfinney.id.au> |
| X-BeenThere | python-list@python.org |
| X-Mailman-Version | 2.1.21 |
| Precedence | list |
| List-Id | General discussion list for the Python programming language <python-list.python.org> |
| List-Unsubscribe | <https://mail.python.org/mailman/options/python-list>, <mailto:python-list-request@python.org?subject=unsubscribe> |
| List-Archive | <http://mail.python.org/pipermail/python-list/> |
| List-Post | <mailto:python-list@python.org> |
| List-Help | <mailto:python-list-request@python.org?subject=help> |
| List-Subscribe | <https://mail.python.org/mailman/listinfo/python-list>, <mailto:python-list-request@python.org?subject=subscribe> |
| X-Mailman-Original-Message-ID | <CAPTjJmobZgyEAiqLqTr5avfxWsX6S4EFyOYRUx6f+QjzVT3XGQ@mail.gmail.com> |
| X-Mailman-Original-References | <CACT3xuUFeOXbjwiWhgZ90UMPi5xXQaj9HpxU3Aepz2Hr8Kw42Q@mail.gmail.com> <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:107084 |
Show key headers only | View raw
On Sat, Apr 16, 2016 at 4:56 PM, Ben Finney <ben+python@benfinney.id.au> wrote: > 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 :-/ Maybe it's an error to use anything non-Unix?? ChrisA
Back to comp.lang.python | Previous | Next | Find similar | Unroll thread
Re: sys.exit(1) vs raise SystemExit vs raise Chris Angelico <rosuav@gmail.com> - 2016-04-16 17:08 +1000
csiph-web