From: Benjamin Peterson Date: Sat, 18 Jan 2014 05:45:56 +0000 (-0500) Subject: describe type of Popen streams (closes #17814) X-Git-Tag: v3.3.4rc1~50 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=3d8814e1d30e174ddcb3591a1ff35206e962b064;p=python describe type of Popen streams (closes #17814) Patch more or less by Nikolaus Rath. --- diff --git a/Doc/library/subprocess.rst b/Doc/library/subprocess.rst index 9f2f82d43a..4acbaa7aac 100644 --- a/Doc/library/subprocess.rst +++ b/Doc/library/subprocess.rst @@ -705,21 +705,29 @@ The following attributes are also available: .. attribute:: Popen.stdin - If the *stdin* argument was :data:`PIPE`, this attribute is a :term:`file - object` that provides input to the child process. Otherwise, it is ``None``. + If the *stdin* argument was :data:`PIPE`, this attribute is a writeable + stream object as returned by :func:`open`. If the *universal_newlines* + argument was ``True``, the stream is a text stream, otherwise it is a byte + stream. If the *stdin* argument was not :data:`PIPE`, this attribute is + ``None``. .. attribute:: Popen.stdout - If the *stdout* argument was :data:`PIPE`, this attribute is a :term:`file - object` that provides output from the child process. Otherwise, it is ``None``. - + If the *stdout* argument was :data:`PIPE`, this attribute is a readable + stream object as returned by :func:`open`. Reading from the stream provides + output from the child process. If the *universal_newlines* argument was + ``True``, the stream is a text stream, otherwise it is a byte stream. If the + *stdout* argument was not :data:`PIPE`, this attribute is ``None``. + .. attribute:: Popen.stderr - If the *stderr* argument was :data:`PIPE`, this attribute is a :term:`file - object` that provides error output from the child process. Otherwise, it is - ``None``. + If the *stderr* argument was :data:`PIPE`, this attribute is a readable + stream object as returned by :func:`open`. Reading from the stream provides + error output from the child process. If the *universal_newlines* argument was + ``True``, the stream is a text stream, otherwise it is a byte stream. If the + *stderr* argument was not :data:`PIPE`, this attribute is ``None``. .. attribute:: Popen.pid