You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.
Show more details
assignee=Noneclosed_at=<Date2019-05-28.00:22:48.604>created_at=<Date2019-04-21.01:04:45.598>labels= ['3.8', 'expert-asyncio']
title="Docs: asyncio.loop.subprocess_exec documentation is confusing, it's not clear how to inherit stdin, stdout or stderr in the subprocess"updated_at=<Date2019-05-28.13:06:47.124>user='https://github.com/sbstp'
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.