New submission from Hirokazu Yamamoto <ocean-c...@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 <rep...@bugs.python.org>
<http://bugs.python.org/issue9929>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to