diff options
author | Gregory P. Smith <greg@krypto.org> | 2022-11-08 21:00:31 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-11-08 21:00:31 (GMT) |
commit | 2eee9d9cd7eb1e396fa9a4af7c5fadeeafbdaa38 (patch) | |
tree | 955f1a74e042fdce0e9021373d02229e33fb902d /Doc | |
parent | 027bc7e6bba93777c80300953579266818d339e7 (diff) | |
download | cpython-2eee9d9cd7eb1e396fa9a4af7c5fadeeafbdaa38.zip cpython-2eee9d9cd7eb1e396fa9a4af7c5fadeeafbdaa38.tar.gz cpython-2eee9d9cd7eb1e396fa9a4af7c5fadeeafbdaa38.tar.bz2 |
gh-99238: clarify the type of the env dict. (#99253)
Diffstat (limited to 'Doc')
-rw-r--r-- | Doc/library/subprocess.rst | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/Doc/library/subprocess.rst b/Doc/library/subprocess.rst index 51b9e38..14414ea 100644 --- a/Doc/library/subprocess.rst +++ b/Doc/library/subprocess.rst @@ -81,8 +81,10 @@ underlying :class:`Popen` interface can be used directly. If *env* is not ``None``, it must be a mapping that defines the environment variables for the new process; these are used instead of the default - behavior of inheriting the current process' environment. It is passed directly - to :class:`Popen`. + behavior of inheriting the current process' environment. It is passed + directly to :class:`Popen`. This mapping can be str to str on any platform + or bytes to bytes on POSIX platforms much like :data:`os.environ` or + :data:`os.environb`. Examples:: @@ -619,7 +621,9 @@ functions. If *env* is not ``None``, it must be a mapping that defines the environment variables for the new process; these are used instead of the default - behavior of inheriting the current process' environment. + behavior of inheriting the current process' environment. This mapping can be + str to str on any platform or bytes to bytes on POSIX platforms much like + :data:`os.environ` or :data:`os.environb`. .. note:: |