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` 


Python tracker <>
Python-bugs-list mailing list

Reply via email to