Skip to content

Commit 13966da

Browse files
authored
gh-105857: Document that asyncio subprocess std{in,out,err} can be file handles (#107986)
stdin/out can be filehandles -> add to docs.
1 parent 39de79b commit 13966da

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

Doc/library/asyncio-eventloop.rst

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1442,6 +1442,7 @@ async/await code consider using the high-level
14421442
* *stdin* can be any of these:
14431443

14441444
* a file-like object
1445+
* an existing file descriptor (a positive integer), for example those created with :meth:`os.pipe()`
14451446
* the :const:`subprocess.PIPE` constant (default) which will create a new
14461447
pipe and connect it,
14471448
* the value ``None`` which will make the subprocess inherit the file

0 commit comments

Comments
 (0)