Message241902
| Author |
belopolsky |
| Recipients |
belopolsky, ethan.furman, gdr@garethrees.org, mark.dickinson, refi64, serhiy.storchaka, terry.reedy |
| Date |
2015年04月24日.00:23:32 |
| SpamBayes Score |
-1.0 |
| Marked as misclassified |
Yes |
| Message-id |
<1429835013.42.0.605880834186.issue14376@psf.upfronthosting.co.za> |
| In-reply-to |
| Content |
Passing anything other than one of the os.EX_* constants to sys.exit() is a bad idea. In most cases you can get away with 0 and ±1. Anything beyond 8 bit signed range is a gamble. Passing a computed integer value is even more problematic. With the current behavior, you at least get some diagnostic when a computed long finds its way to sys.axit(). With the proposed patch these errors will pass silently. |
|