Message247081
| Author |
martin.panter |
| Recipients |
belopolsky, berker.peksag, mark.dickinson, martin.panter, pitrou, scoder, serhiy.storchaka, skrah, terry.reedy |
| Date |
2015年07月22日.02:49:06 |
| SpamBayes Score |
-1.0 |
| Marked as misclassified |
Yes |
| Message-id |
<1437533346.64.0.135977854402.issue24053@psf.upfronthosting.co.za> |
| In-reply-to |
| Content |
FWIW I have wondered in the past why these constants were missing. I would be more likely to use them when checking an exit status than when setting one. I typically do "raise SystemExit()" or "raise SystemExit('Error message')", which implicitly sets the status.
My preference would be to put EXIT_SUCCESS and EXIT_FAILURE in the "os" module, next to the existing EX_ codes. But I guess the "sys" module would also work. |
|