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 <rep...@bugs.python.org> <http://bugs.python.org/issue16624> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com