[issue24053] Define EXIT_SUCCESS and EXIT_FAILURE constants in sys
Serhiy Storchaka
report at bugs.python.org
Mon Apr 27 21:19:39 CEST 2015
Serhiy Storchaka added the comment:
How often you see EXIT_SUCCESS and EXIT_FAILURE in C code besides GNU tools that should support VMS? And even GNU tools usually use multiple error codes for different kinds of errors.
I think that these constants are rather unusual for C programmers.
I'm only -0 on adding these constants, not -1, because I'm sure they will be never used. But this will add a burden on the documentation and will confuse inexperienced users when they unexpectedly encounter with sys.exit(sys.EXIT_FAILURE) instead of sys.exit(1).
----------
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue24053>
_______________________________________
More information about the Python-bugs-list
mailing list