[issue29345] More lost updates with multiprocessing.Value and .Array
Eryk Sun
report at bugs.python.org
Sun Jan 22 12:58:23 EST 2017
Eryk Sun added the comment:
> if p.exitcode != 0:
> print('Child failed with exit code:', p.exitcode)
Interestingly the exit code is always 1 when running under pythonw.exe. I just inspected what's going on by setting sys.stderr to a file and discovered the following issue:
File "C:\Program Files\Python35\lib\multiprocessing\process.py", line 268, in _bootstrap
sys.stdout.flush()
AttributeError: 'NoneType' object has no attribute 'flush'
Calling flush() on stderr and stdout should be gated by a check that they're not None and have a flush method. Or simply ignore the AttributeError.
----------
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue29345>
_______________________________________
More information about the Python-bugs-list
mailing list