From: Fred Drake Date: Thu, 31 May 2001 20:27:18 +0000 (+0000) Subject: Document os.getenv(). X-Git-Tag: v2.1.1c1~90 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=3da898b88ffdf4edde07bc266a5dd10272b79c63;p=thirdparty%2FPython%2Fcpython.git Document os.getenv(). This closes SF bug #429059. --- diff --git a/Doc/lib/libos.tex b/Doc/lib/libos.tex index bc4d94753cb3..1767e378e322 100644 --- a/Doc/lib/libos.tex +++ b/Doc/lib/libos.tex @@ -166,6 +166,13 @@ Return the current process' user id. Availability: \UNIX{}. \end{funcdesc} +\begin{funcdesc}{getenv}{varname\optional{, value}} +Return the value of the environment variable \var{varname} if it +exists, or \var{value} if it doesn't. \var{value} defaults to +\code{None}. +Availability: most flavors of \UNIX{}, Windows. +\end{funcdesc} + \begin{funcdesc}{putenv}{varname, value} \index{environment variables!setting} Set the environment variable named \var{varname} to the string