@@ -264,13 +264,14 @@ default values. The arguments that are most commonly needed are:
264264 *stdin *, *stdout * and *stderr * specify the executed program's standard input,
265265 standard output and standard error file handles, respectively. Valid values
266266 are :data: `PIPE `, :data: `DEVNULL `, an existing file descriptor (a positive
267- integer), an existing file object, and ``None ``. :data: `PIPE ` indicates
268- that a new pipe to the child should be created. :data: `DEVNULL ` indicates
269- that the special file :data: `os.devnull ` will be used. With the default
270- settings of ``None ``, no redirection will occur; the child's file handles
271- will be inherited from the parent. Additionally, *stderr * can be
272- :data: `STDOUT `, which indicates that the stderr data from the child
273- process should be captured into the same file handle as for *stdout *.
267+ integer), an existing file object with a valid file descriptor, and ``None ``.
268+ :data: `PIPE ` indicates that a new pipe to the child should be created.
269+ :data: `DEVNULL ` indicates that the special file :data: `os.devnull ` will
270+ be used. With the default settings of ``None ``, no redirection will occur;
271+ the child's file handles will be inherited from the parent.
272+ Additionally, *stderr * can be :data: `STDOUT `, which indicates that the
273+ stderr data from the child process should be captured into the same file
274+ handle as for *stdout *.
274275
275276 .. index ::
276277 single: universal newlines; subprocess module
@@ -463,13 +464,14 @@ functions.
463464 *stdin *, *stdout * and *stderr * specify the executed program's standard input,
464465 standard output and standard error file handles, respectively. Valid values
465466 are :data: `PIPE `, :data: `DEVNULL `, an existing file descriptor (a positive
466- integer), an existing :term: `file object `, and ``None ``. :data: `PIPE `
467- indicates that a new pipe to the child should be created. :data: `DEVNULL `
468- indicates that the special file :data: `os.devnull ` will be used. With the
469- default settings of ``None ``, no redirection will occur; the child's file
470- handles will be inherited from the parent. Additionally, *stderr * can be
471- :data: `STDOUT `, which indicates that the stderr data from the applications
472- should be captured into the same file handle as for stdout.
467+ integer), an existing :term: `file object ` with a valid file descriptor,
468+ and ``None ``. :data: `PIPE ` indicates that a new pipe to the child should
469+ be created. :data: `DEVNULL ` indicates that the special file
470+ :data: `os.devnull ` will be used. With the default settings of ``None ``,
471+ no redirection will occur; the child's file handles will be inherited from
472+ the parent. Additionally, *stderr * can be :data: `STDOUT `, which indicates
473+ that the stderr data from the applications should be captured into the same
474+ file handle as for stdout.
473475
474476 If *preexec_fn * is set to a callable object, this object will be called in the
475477 child process just before the child is executed.
0 commit comments