Author sbstp
Recipients asvetlov, sbstp, yselivanov
Date 2019-04-21.01:04:45
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1555808685.63.0.20312678962.issue36686@roundup.psfhosted.org>
In-reply-to
Content
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.
History
Date User Action Args
2019-04-21 01:04:45sbstpsetrecipients: + sbstp, asvetlov, yselivanov
2019-04-21 01:04:45sbstpsetmessageid: <1555808685.63.0.20312678962.issue36686@roundup.psfhosted.org>
2019-04-21 01:04:45sbstplinkissue36686 messages
2019-04-21 01:04:45sbstpcreate