]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
gh-99238: clarify the type of the env dict. (#99253)
authorGregory P. Smith <greg@krypto.org>
Tue, 8 Nov 2022 21:00:31 +0000 (13:00 -0800)
committerGitHub <noreply@github.com>
Tue, 8 Nov 2022 21:00:31 +0000 (13:00 -0800)
Doc/library/subprocess.rst

index 51b9e38b7b6ce916b5f9c1ff91271f39abb963e8..14414ea7f81ea32c0762695c232e620013c66eae 100644 (file)
@@ -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::