]> granicus.if.org Git - python/commitdiff
#2683: communicate() takes bytes.
authorGeorg Brandl <georg@python.org>
Tue, 1 Jul 2008 19:10:52 +0000 (19:10 +0000)
committerGeorg Brandl <georg@python.org>
Tue, 1 Jul 2008 19:10:52 +0000 (19:10 +0000)
Doc/library/subprocess.rst

index 38f40633a95217c7aecdae2763ee2cdc73c39cb3..d85f5dc7b58d4f6414884988e460f23c41fffe5f 100644 (file)
@@ -102,7 +102,7 @@ This module defines one class called :class:`Popen`:
 
       This feature is only available if Python is built with universal newline support
       (the default).  Also, the newlines attribute of the file objects :attr:`stdout`,
-      :attr:`stdin` and :attr:`stderr` are not updated by the communicate() method.
+      :attr:`stdin` and :attr:`stderr` are not updated by the :meth:`communicate` method.
 
    The *startupinfo* and *creationflags*, if given, will be passed to the
    underlying CreateProcess() function.  They can specify things such as appearance
@@ -215,7 +215,7 @@ Instances of the :class:`Popen` class have the following methods:
 
    Interact with process: Send data to stdin.  Read data from stdout and stderr,
    until end-of-file is reached.  Wait for process to terminate. The optional
-   *input* argument should be a string to be sent to the child process, or
+   *input* argument should be a byte string to be sent to the child process, or
    ``None``, if no data should be sent to the child.
 
    :meth:`communicate` returns a tuple ``(stdout, stderr)``.