Berker Peksag added the comment:

> 1. I find exit(EXIT_FAILURE) much clearer than exit(1). 

    import sys

    exit(sys.EXIT_FAILURE)

or

    import sys

    sys.exit(sys.EXIT_FAILURE)

don't look too clear to me. On the other hand, these constants may helpful to 
people who came from C world.

> 3. I want discourage people from using computed integer results as exit 
> status.

Adding a FAQ entry or updating sys.exit() documentation would be more suitable 
to achieve the aim of this item. I wouldn't add two constants to the stdlib 
because of a bad programming practice.

----------
nosy: +berker.peksag

_______________________________________
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue24053>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to