#837577: note cryptic return value of spawn*e on invalid env dicts.

This commit is contained in:
Georg Brandl 2009-03-31 18:26:55 +00:00
parent 40a6164afa
commit 22717dffba
1 changed files with 3 additions and 1 deletions

View 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 which is used to define the environment variables for the new process (they are
used instead of the current process' environment); the functions used instead of the current process' environment); the functions
:func:`spawnl`, :func:`spawnlp`, :func:`spawnv`, and :func:`spawnvp` all cause :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 As an example, the following calls to :func:`spawnlp` and :func:`spawnvpe` are
equivalent:: equivalent::