[issue10174] multiprocessing expects sys.stdout to have a fileno/close method.
Simon de Vlieger
report at bugs.python.org
Sat Oct 23 01:22:19 CEST 2010
New submission from Simon de Vlieger <simon at ikanobori.jp>:
When I have replaced sys.stdin with my own file-like object and I try to do a multiprocessing.Pool(processes=x) I get errors about sys.stdin not having a fileno or close method.
For at least fileno it is described in the docs (http://docs.python.org/library/stdtypes.html#file-objects) that if your object is not a real file you should not implement it.
This happens to me on Mac OS X, I will add the traceback a bit later as I am currently not on my Mac.
----------
components: None
messages: 119408
nosy: ikanobori
priority: normal
severity: normal
status: open
title: multiprocessing expects sys.stdout to have a fileno/close method.
versions: Python 2.6, Python 2.7
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue10174>
_______________________________________
More information about the Python-bugs-list
mailing list