Message162501
| Author |
kisielk |
| Recipients |
kisielk |
| Date |
2012年06月07日.21:13:38 |
| SpamBayes Score |
-1.0 |
| Marked as misclassified |
Yes |
| Message-id |
<1339103619.16.0.545991410176.issue15033@psf.upfronthosting.co.za> |
| In-reply-to |
| Content |
Python returns a different exit status when an exception is raised and -m is used as opposed to just running a module.
A short example, let's call it foo.py:
def main():
raise ValueError()
if __name__ == '__main__':
main()
When run with python foo.py the exit status of the process is 1. If run with python -mfoo the exit status of the process is 255. |
|
History
|
|---|
| Date |
User |
Action |
Args |
| 2012年06月07日 21:13:39 | kisielk | set | recipients:
+ kisielk |
| 2012年06月07日 21:13:39 | kisielk | set | messageid: <1339103619.16.0.545991410176.issue15033@psf.upfronthosting.co.za> |
| 2012年06月07日 21:13:38 | kisielk | link | issue15033 messages |
| 2012年06月07日 21:13:38 | kisielk | create |
|