[New-bugs-announce] [issue16624] subprocess.check_output should allow specifying stdin as a string

Zack Weinberg report at bugs.python.org
Wed Dec 5 23:54:17 CET 2012


New submission from Zack Weinberg:

subprocess.check_output calls Popen.communicate but does not allow you to specify its argument (i.e. data to send to the child process's stdin).  It would be nice if it were enhanced to allow this.  Proposed patch attached (to the 2.7 subprocess.py; should apply with trivial changes in 3.x).

----------
components: Library (Lib)
files: subprocess-check-output-allow-input.diff
keywords: patch
messages: 177014
nosy: zwol
priority: normal
severity: normal
status: open
title: subprocess.check_output should allow specifying stdin as a string
type: enhancement
Added file: http://bugs.python.org/file28218/subprocess-check-output-allow-input.diff

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


More information about the New-bugs-announce mailing list