New submission from Jon Brandvein <[email protected]>:
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()).
----------
components: Library (Lib)
messages: 151921
nosy: brandj, jnoller
priority: normal
severity: normal
status: open
title: multiprocessing: SystemExit from child with non-int, non-str arg causes
TypeError
type: behavior
versions: Python 2.7, Python 3.1, Python 3.2
_______________________________________
Python tracker <[email protected]>
<http://bugs.python.org/issue13854>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe:
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com