diff options
author | Fred Drake <fdrake@acm.org> | 2001-05-31 20:27:46 (GMT) |
---|---|---|
committer | Fred Drake <fdrake@acm.org> | 2001-05-31 20:27:46 (GMT) |
commit | 81e142b9077ebe1108a58ccabe1f682bcfff9818 (patch) | |
tree | 41b14522929aaf8b3a7c0c930f4217212b2d25ec /Doc/lib | |
parent | c19f39272ea5362aceea78c80cee529de1716631 (diff) | |
download | cpython-81e142b9077ebe1108a58ccabe1f682bcfff9818.zip cpython-81e142b9077ebe1108a58ccabe1f682bcfff9818.tar.gz cpython-81e142b9077ebe1108a58ccabe1f682bcfff9818.tar.bz2 |
Document os.getenv().
This closes SF bug #429059.
Diffstat (limited to 'Doc/lib')
-rw-r--r-- | Doc/lib/libos.tex | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/Doc/lib/libos.tex b/Doc/lib/libos.tex index bc4d947..1767e37 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 |