[issue16624] subprocess.check_output should allow specifying stdin as a string
Zack Weinberg
report at bugs.python.org
Thu Apr 18 20:32:43 CEST 2013
Zack Weinberg added the comment:
> I think that it will be better not introduce a new argument, but reuse stdin. Just allow io.BytesIO (or perhaps even any file object) be specified as stdin.
If we were designing from scratch I might agree, but we aren't. Principle of least astonishment says that the API here should match `subprocess.communicate`, and that has separate `stdin=FILE` and `input=STRING` arguments.
----------
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue16624>
_______________________________________
More information about the Python-bugs-list
mailing list