Message247081
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. |
|
Date |
User |
Action |
Args |
2015-07-22 02:49:06 | martin.panter | set | recipients:
+ martin.panter, terry.reedy, mark.dickinson, belopolsky, pitrou, scoder, skrah, berker.peksag, serhiy.storchaka |
2015-07-22 02:49:06 | martin.panter | set | messageid: <1437533346.64.0.135977854402.issue24053@psf.upfronthosting.co.za> |
2015-07-22 02:49:06 | martin.panter | link | issue24053 messages |
2015-07-22 02:49:06 | martin.panter | create | |
|