summaryrefslogtreecommitdiffstats
path: root/Doc/lib/libos.tex
diff options
context:
space:
mode:
authorAndrew M. Kuchling <amk@amk.ca>2003-02-03 15:36:26 (GMT)
committerAndrew M. Kuchling <amk@amk.ca>2003-02-03 15:36:26 (GMT)
commit4b37364fc8b6d776d63094ccf0ad004e8e43e6de (patch)
treef872ce69872ed406c98f7eb5755a00fb9c24da19 /Doc/lib/libos.tex
parentda72d9376b7bcd2c9a532e83041caf3a713f7bc2 (diff)
downloadcpython-4b37364fc8b6d776d63094ccf0ad004e8e43e6de.zip
cpython-4b37364fc8b6d776d63094ccf0ad004e8e43e6de.tar.gz
cpython-4b37364fc8b6d776d63094ccf0ad004e8e43e6de.tar.bz2
Bug #678077: Suggest alternative to os.getlogin()
Diffstat (limited to 'Doc/lib/libos.tex')
-rw-r--r--Doc/lib/libos.tex4
1 files changed, 3 insertions, 1 deletions
diff --git a/Doc/lib/libos.tex b/Doc/lib/libos.tex
index e7e1ac5..aa57217 100644
--- a/Doc/lib/libos.tex
+++ b/Doc/lib/libos.tex
@@ -141,7 +141,9 @@ Availability: \UNIX.
\begin{funcdesc}{getlogin}{}
Return the name of the user logged in on the controlling terminal of
the process. For most purposes, it is more useful to use the
-environment variable \envvar{LOGNAME} to find out who the user is.
+environment variable \envvar{LOGNAME} to find out who the user is,
+or \code{pwd.getpwuid(os.getuid())[0]} to get the login name
+of the currently effective user ID.
Availability: \UNIX.
\end{funcdesc}