[issue24053] Define EXIT_SUCCESS and EXIT_FAILURE constants in sys
Antoine Pitrou
report at bugs.python.org
Mon Apr 27 21:02:14 CEST 2015
Antoine Pitrou added the comment:
> I want people to standardize on status=1 for a generic failure code.
Why that? Multiple error codes can be used by the same program, depending on the kind of error.
> I want discourage people from using computed integer results as exit status.
Ok, that's the first good argument for this feature. Although I would encourage people raise an exception if they want to signify a failure, rather than simply change the error code.
----------
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue24053>
_______________________________________
More information about the Python-bugs-list
mailing list