Message162501
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. |
|
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 | |
|