Commit 439f250c authored by Georg Brandl's avatar Georg Brandl

#1344: document that you need to open std{in,out,err} with PIPE if you want

communicate() to work as described.
parent 98f4079f
...@@ -195,7 +195,12 @@ Instances of the :class:`Popen` class have the following methods: ...@@ -195,7 +195,12 @@ Instances of the :class:`Popen` class have the following methods:
communicate() returns a tuple (stdout, stderr). communicate() returns a tuple (stdout, stderr).
.. note:: 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 other than
``None`` in the result tuple, you need to give ``stdout=PIPE`` and/or
``stderr=PIPE`` too.
.. note::
The data read is buffered in memory, so do not use this method if the data size The data read is buffered in memory, so do not use this method if the data size
is large or unlimited. is large or unlimited.
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment