New submission from Simon Bernier St-Pierre <sbernierstpie...@gmail.com>:
I had trouble figuring out how to simply inherit stdin, stdout, or stderr in the asyncio.create_subprocess_exec / asyncio.subprocess_exec docs. My experiments show that passing either None or `sys.std*` works but the way the docs are written make it hard to figure that out in my opinion. > stdout: either a file-like object representing the pipe to be connected to > the subprocess’s standard output stream using connect_read_pipe(), or the > subprocess.PIPE constant (default). By default a new pipe will be created and > connected. I would add a mention that using None makes the subprocess inherit the file descriptor. ---------- components: asyncio messages: 340593 nosy: asvetlov, sbstp, yselivanov priority: normal severity: normal status: open title: Docs: asyncio.loop.subprocess_exec documentation is confusing, it's not clear how to inherit stdin, stdout or stderr in the subprocess versions: Python 3.5, Python 3.6, Python 3.7, Python 3.8, Python 3.9 _______________________________________ Python tracker <rep...@bugs.python.org> <https://bugs.python.org/issue36686> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com