]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
Document os.getenv().
authorFred Drake <fdrake@acm.org>
Thu, 31 May 2001 20:27:18 +0000 (20:27 +0000)
committerFred Drake <fdrake@acm.org>
Thu, 31 May 2001 20:27:18 +0000 (20:27 +0000)
This closes SF bug #429059.

Doc/lib/libos.tex

index bc4d94753cb3ab81e0f39a2eb0715f88914ff471..1767e378e3228b91da0dc85f58cb0c7172405c1b 100644 (file)
@@ -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