[issue5313] multiprocessing.process using os.close(sys.stdin.fileno) instead of sys.stdin.close()

Marcin Cieslik report at bugs.python.org
Thu Apr 16 14:11:19 CEST 2009


Marcin Cieslik <marcin.cieslik at gmail.com> added the comment:

Hello,

I believe I am the edge-case. I've written a minimalist python
Tkinter-shell around Tkinter.Text and code.InteractiveConsole by
hi-jacking stdin, stdout and stderr. It "hangs" when using
multiprocessing pool.

to reproduce run papy_gui.py
and type:
>>> from math import sqrt
>>> from multiprocessing import Pool
>>> p = Pool()
>>> print p
<multiprocessing.pool.Pool object at 0xb723738c>
>>> p.map(sqrt, [1,2,3])
<<no more output ever>>

----------
nosy: +i000
Added file: http://bugs.python.org/file13704/papy_gui.py

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue5313>
_______________________________________


More information about the Python-bugs-list mailing list