Commit e11787a4 authored by Georg Brandl's avatar Georg Brandl

#2683: communicate() takes bytes.

parent de9c869f
...@@ -102,7 +102,7 @@ This module defines one class called :class:`Popen`: ...@@ -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 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`, (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 The *startupinfo* and *creationflags*, if given, will be passed to the
underlying CreateProcess() function. They can specify things such as appearance underlying CreateProcess() function. They can specify things such as appearance
...@@ -215,7 +215,7 @@ Instances of the :class:`Popen` class have the following methods: ...@@ -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, 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 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. ``None``, if no data should be sent to the child.
:meth:`communicate` returns a tuple ``(stdout, stderr)``. :meth:`communicate` returns a tuple ``(stdout, stderr)``.
......
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