This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author belopolsky
Recipients belopolsky
Date 2015-04-24.15:47:49
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1429890469.94.0.27310602141.issue24053@psf.upfronthosting.co.za>
In-reply-to
Content
Python defines some BSDish exit codes in the os module:

    EX_CANTCREAT = 73
    EX_CONFIG = 78
    EX_DATAERR = 65
    EX_IOERR = 74
    EX_NOHOST = 68
    EX_NOINPUT = 66
    EX_NOPERM = 77
    EX_NOUSER = 67
    EX_OK = 0
    EX_OSERR = 71
    EX_OSFILE = 72
    EX_PROTOCOL = 76
    EX_SOFTWARE = 70
    EX_TEMPFAIL = 75
    EX_UNAVAILABLE = 69
    EX_USAGE = 64

but these are documented as only available on UNIX and may not be portable across all flavors. 


POSIX [1] and C99 defines EXIT_SUCCESS and EXIT_FAILURE constants.  I propose adding those to sys.

Having these constants in sys will make them more discoverable because they will be next to sys.exit().


[1] http://pubs.opengroup.org/onlinepubs/009695399/functions/exit.html
History
Date User Action Args
2015-04-24 15:47:49belopolskysetrecipients: + belopolsky
2015-04-24 15:47:49belopolskysetmessageid: <1429890469.94.0.27310602141.issue24053@psf.upfronthosting.co.za>
2015-04-24 15:47:49belopolskylinkissue24053 messages
2015-04-24 15:47:49belopolskycreate