[New-bugs-announce] [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.
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>
More information about the New-bugs-announce