From: Georg Brandl Date: Sat, 19 Apr 2008 16:58:49 +0000 (+0000) Subject: #2633: clarify meaning of env parameter. X-Git-Tag: v2.6a3~158 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=f801b0f04cf08d077f648febf4af1b7f94b81dd9;p=python #2633: clarify meaning of env parameter. --- diff --git a/Doc/library/subprocess.rst b/Doc/library/subprocess.rst index d1471f1ff8..b93bd0395c 100644 --- a/Doc/library/subprocess.rst +++ b/Doc/library/subprocess.rst @@ -93,8 +93,9 @@ This module defines one class called :class:`Popen`: searching the executable, so you can't specify the program's path relative to *cwd*. - If *env* is not ``None``, it defines the environment variables for the new - process. + If *env* is not ``None``, it must be a mapping that defines the environment + variables for the new process; these are used instead of inheriting the current + process' environment, which is the default behavior. If *universal_newlines* is :const:`True`, the file objects stdout and stderr are opened as text files, but lines may be terminated by any of ``'\n'``, the Unix