[New-bugs-announce] [issue12031] subprocess module does not accept file twice
marko kreen
report at bugs.python.org
Sun May 8 18:19:01 CEST 2011
New submission from marko kreen <markokr at gmail.com>:
I want to pass /dev/null as stdin and stderr.
This works from python 2.4 .. 3.2a3
It fails in final 3.2 with 'Bad file descriptor':
Traceback (most recent call last):
File "test.py", line 11, in <module>
Popen(['cat', 'file.txt'], stdout = PIPE, stdin = _in, stderr = _err)
File "/opt/apps/python320/lib/python3.2/subprocess.py", line 736, in __init__
restore_signals, start_new_session)
File "/opt/apps/python320/lib/python3.2/subprocess.py", line 1330, in _execute_child
raise child_exception_type(errno_num, err_msg)
OSError: [Errno 9] Bad file descriptor
----------
components: Library (Lib)
files: test.py
messages: 135530
nosy: zmk
priority: normal
severity: normal
status: open
title: subprocess module does not accept file twice
type: crash
versions: Python 3.2
Added file: http://bugs.python.org/file21935/test.py
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue12031>
_______________________________________
More information about the New-bugs-announce
mailing list