mirror of
https://github.com/python/cpython.git
synced 2025-07-24 11:44:31 +00:00
asyncio: Remove Process.subprocess attribute; it's too easy to get inconsistent
Process and Popen objects
This commit is contained in:
parent
313f829ce8
commit
0c3949c963
3 changed files with 1 additions and 29 deletions
|
@ -87,10 +87,6 @@ Process
|
|||
Standard error stream (read), ``None`` if the process was created with
|
||||
``stderr=None``.
|
||||
|
||||
.. attribute:: subprocess
|
||||
|
||||
Underlying :class:`subprocess.Popen` object.
|
||||
|
||||
.. method:: communicate(input=None)
|
||||
|
||||
Interact with process: Send data to stdin. Read data from stdout and
|
||||
|
@ -102,7 +98,7 @@ Process
|
|||
:meth:`communicate` returns a tuple ``(stdoutdata, stderrdata)``.
|
||||
|
||||
Note that if you want to send data to the process's stdin, you need to
|
||||
create the Popen object with ``stdin=PIPE``. Similarly, to get anything
|
||||
create the Process object with ``stdin=PIPE``. Similarly, to get anything
|
||||
other than ``None`` in the result tuple, you need to give ``stdout=PIPE``
|
||||
and/or ``stderr=PIPE`` too.
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue