homepage

This issue tracker has been migrated to GitHub , and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

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:39kisielksetrecipients: + kisielk
2012年06月07日 21:13:39kisielksetmessageid: <1339103619.16.0.545991410176.issue15033@psf.upfronthosting.co.za>
2012年06月07日 21:13:38kisielklinkissue15033 messages
2012年06月07日 21:13:38kisielkcreate

AltStyle によって変換されたページ (->オリジナル) /