@@ -1438,9 +1438,7 @@ async/await code consider using the high-level
1438
1438
1439
1439
* *stdin * can be any of these:
1440
1440
1441
- * a file-like object representing a pipe to be connected to the
1442
- subprocess's standard input stream using
1443
- :meth: `~loop.connect_write_pipe `
1441
+ * a file-like object
1444
1442
* the :const: `subprocess.PIPE ` constant (default) which will create a new
1445
1443
pipe and connect it,
1446
1444
* the value ``None `` which will make the subprocess inherit the file
@@ -1450,9 +1448,7 @@ async/await code consider using the high-level
1450
1448
1451
1449
* *stdout * can be any of these:
1452
1450
1453
- * a file-like object representing a pipe to be connected to the
1454
- subprocess's standard output stream using
1455
- :meth: `~loop.connect_write_pipe `
1451
+ * a file-like object
1456
1452
* the :const: `subprocess.PIPE ` constant (default) which will create a new
1457
1453
pipe and connect it,
1458
1454
* the value ``None `` which will make the subprocess inherit the file
@@ -1462,9 +1458,7 @@ async/await code consider using the high-level
1462
1458
1463
1459
* *stderr * can be any of these:
1464
1460
1465
- * a file-like object representing a pipe to be connected to the
1466
- subprocess's standard error stream using
1467
- :meth: `~loop.connect_write_pipe `
1461
+ * a file-like object
1468
1462
* the :const: `subprocess.PIPE ` constant (default) which will create a new
1469
1463
pipe and connect it,
1470
1464
* the value ``None `` which will make the subprocess inherit the file
@@ -1483,6 +1477,11 @@ async/await code consider using the high-level
1483
1477
as text. :func: `bytes.decode ` can be used to convert the bytes returned
1484
1478
from the stream to text.
1485
1479
1480
+ If a file-like object passed as *stdin *, *stdout * or *stderr * represents a
1481
+ pipe, then the other side of this pipe should be registered with
1482
+ :meth: `~loop.connect_write_pipe ` or :meth: `~loop.connect_read_pipe ` for use
1483
+ with the event loop.
1484
+
1486
1485
See the constructor of the :class: `subprocess.Popen ` class
1487
1486
for documentation on other arguments.
1488
1487
0 commit comments