Message151921
| Author |
brandjon |
| Recipients |
brandjon, jnoller |
| Date |
2012年01月24日.18:08:45 |
| SpamBayes Score |
0.0001788037 |
| Marked as misclassified |
No |
| Message-id |
<1327428526.26.0.964378708084.issue13854@psf.upfronthosting.co.za> |
| In-reply-to |
| Content |
In a child process, raising SystemExit or calling sys.exit with a non-integer, non-string argument value causes a TypeError at Lib/multiprocessing/process.py :: _bootstrap. This is from concatenating the argument with '\n' and writing it to stderr.
Suggested fix: replace
sys.stderr.write(e.args[0] + '\n')
with
sys.stderr.write(str(e.args[0]) + '\n')
This problem also occurs when the value is None, but only for raising SystemExit (not calling sys.exit()). |
|
History
|
|---|
| Date |
User |
Action |
Args |
| 2012年01月24日 18:08:46 | brandjon | set | recipients:
+ brandjon, jnoller |
| 2012年01月24日 18:08:46 | brandjon | set | messageid: <1327428526.26.0.964378708084.issue13854@psf.upfronthosting.co.za> |
| 2012年01月24日 18:08:45 | brandjon | link | issue13854 messages |
| 2012年01月24日 18:08:45 | brandjon | create |
|