[issue9929] subprocess.Popen unbuffered not work (windows)

Hirokazu Yamamoto report at bugs.python.org
Thu Sep 23 20:15:42 CEST 2010


New submission from Hirokazu Yamamoto <ocean-city at m2.ccsnet.ne.jp>:

Following script hangs on Python3.x.

from subprocess import *
import sys

p = Popen([sys.executable, "-c", "import sys; print(sys.stdin.read(1))"], stdin=PIPE)
p.stdin.write(b'x')
p.wait()

This is because unbuffered functionality of
subprocess.Popen is disabled. Is this still needed?

I confirmed test_subprocess passes with the attached
patch.

----------
components: Windows
files: py3k_fix_unbuffered_in_subprocess.patch
keywords: patch
messages: 117213
nosy: ocean-city
priority: normal
severity: normal
status: open
title: subprocess.Popen unbuffered not work (windows)
versions: Python 3.1, Python 3.2
Added file: http://bugs.python.org/file18980/py3k_fix_unbuffered_in_subprocess.patch

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


More information about the Python-bugs-list mailing list