File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -738,10 +738,11 @@ Instances of the :class:`Popen` class have the following methods:
738738.. method :: Popen.communicate(input=None, timeout=None)
739739
740740 Interact with process: Send data to stdin. Read data from stdout and stderr,
741- until end-of-file is reached. Wait for process to terminate. The optional
742- *input * argument should be data to be sent to the child process, or
743- ``None ``, if no data should be sent to the child. If streams were opened in
744- text mode, *input * must be a string. Otherwise, it must be bytes.
741+ until end-of-file is reached. Wait for process to terminate and set the
742+ :attr: `~Popen.returncode ` attribute. The optional *input * argument should be
743+ data to be sent to the child process, or ``None ``, if no data should be sent
744+ to the child. If streams were opened in text mode, *input * must be a string.
745+ Otherwise, it must be bytes.
745746
746747 :meth: `communicate ` returns a tuple ``(stdout_data, stderr_data) ``.
747748 The data will be strings if streams were opened in text mode; otherwise,
You can’t perform that action at this time.
0 commit comments