Kaydet (Commit) 81e142b9 authored tarafından Fred Drake's avatar Fred Drake

Document os.getenv().

This closes SF bug #429059.
üst c19f3927
...@@ -166,6 +166,13 @@ Return the current process' user id. ...@@ -166,6 +166,13 @@ Return the current process' user id.
Availability: \UNIX{}. Availability: \UNIX{}.
\end{funcdesc} \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} \begin{funcdesc}{putenv}{varname, value}
\index{environment variables!setting} \index{environment variables!setting}
Set the environment variable named \var{varname} to the string Set the environment variable named \var{varname} to the string
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment