[Python-checkins] r70851 - python/trunk/Doc/library/os.rst

georg.brandl python-checkins at python.org
Tue Mar 31 20:26:55 CEST 2009


Author: georg.brandl
Date: Tue Mar 31 20:26:55 2009
New Revision: 70851

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

Modified:
   python/trunk/Doc/library/os.rst

Modified: python/trunk/Doc/library/os.rst
==============================================================================
--- python/trunk/Doc/library/os.rst	(original)
+++ python/trunk/Doc/library/os.rst	Tue Mar 31 20:26:55 2009
@@ -1753,7 +1753,9 @@
    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::


More information about the Python-checkins mailing list