]> granicus.if.org Git - python/commitdiff
#837577: note cryptic return value of spawn*e on invalid env dicts.
authorGeorg Brandl <georg@python.org>
Tue, 31 Mar 2009 18:26:55 +0000 (18:26 +0000)
committerGeorg Brandl <georg@python.org>
Tue, 31 Mar 2009 18:26:55 +0000 (18:26 +0000)
Doc/library/os.rst

index bbe3b5c1b9e03518f0334255872021ebe0db5c4c..4ea6c7f5b3265269dd0db48e2401991e8c8df772 100644 (file)
@@ -1753,7 +1753,9 @@ written in Python, such as a mail server's external command delivery program.
    which is used to define the environment variables for the new process (they are
    used instead of the current process' environment); the functions
    :func:`spawnl`, :func:`spawnlp`, :func:`spawnv`, and :func:`spawnvp` all cause
-   the new process to inherit the environment of the current process.
+   the new process to inherit the environment of the current process.  Note that
+   keys and values in the *env* dictionary must be strings; invalid keys or
+   values will cause the function to fail, with a return value of ``127``.
 
    As an example, the following calls to :func:`spawnlp` and :func:`spawnvpe` are
    equivalent::