]> granicus.if.org Git - python/commitdiff
Bug #678077: Suggest alternative to os.getlogin()
authorAndrew M. Kuchling <amk@amk.ca>
Mon, 3 Feb 2003 15:36:26 +0000 (15:36 +0000)
committerAndrew M. Kuchling <amk@amk.ca>
Mon, 3 Feb 2003 15:36:26 +0000 (15:36 +0000)
Doc/lib/libos.tex

index e7e1ac5d2d86a002ddd270dc30f1248b774f2530..aa57217832bcdc8056d4da6afc4b1fee1c3f4f4e 100644 (file)
@@ -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}