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 asksol
Recipients 5houston, asksol, jnoller
Date 2010年11月03日.20:38:38
SpamBayes Score 5.9823535e-05
Marked as misclassified No
Message-id <1288816719.84.0.372685056004.issue8028@psf.upfronthosting.co.za>
In-reply-to
Content
Since you can't specify the return code, `self.terminate` is less flexible than `sys.exit`.
I think the original intent is clear here, the method is there for the parent to control the child. You are of course welcome to argue otherwise.
By the way, I just read the code and noticed that it handles SystemExit well, and supports using it to set the return code:
 class X(Process):
 def run(self):
 if not frobulating:
 raise SystemExit(255)
History
Date User Action Args
2010年11月03日 20:38:39asksolsetrecipients: + asksol, jnoller, 5houston
2010年11月03日 20:38:39asksolsetmessageid: <1288816719.84.0.372685056004.issue8028@psf.upfronthosting.co.za>
2010年11月03日 20:38:38asksollinkissue8028 messages
2010年11月03日 20:38:38asksolcreate

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