]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
gh-105857: Document that asyncio subprocess std{in,out,err} can be file handles ...
authorHadházy Tamás <85063808+Hels15@users.noreply.github.com>
Tue, 22 Aug 2023 18:41:56 +0000 (19:41 +0100)
committerGitHub <noreply@github.com>
Tue, 22 Aug 2023 18:41:56 +0000 (20:41 +0200)
stdin/out can be filehandles -> add to docs.

Doc/library/asyncio-eventloop.rst

index 8f2d8f336c82bb2e92b1cae759aa7e8c6e5df9b5..04af53b980ff9eb90adeb4782d390c869fe9aa9a 100644 (file)
@@ -1442,6 +1442,7 @@ async/await code consider using the high-level
    * *stdin* can be any of these:
 
      * a file-like object
+     * an existing file descriptor (a positive integer), for example those created with :meth:`os.pipe()`
      * the :const:`subprocess.PIPE` constant (default) which will create a new
        pipe and connect it,
      * the value ``None`` which will make the subprocess inherit the file