Message120345
| 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:39 | asksol | set | recipients:
+ asksol, jnoller, 5houston |
| 2010年11月03日 20:38:39 | asksol | set | messageid: <1288816719.84.0.372685056004.issue8028@psf.upfronthosting.co.za> |
| 2010年11月03日 20:38:38 | asksol | link | issue8028 messages |
| 2010年11月03日 20:38:38 | asksol | create |
|