Mercurial > cpython-lru_cache-weakref
diff Doc/lib/libos.tex @ 27642:4d04f45ff8a1 legacy-trunk
Bug #678077: Suggest alternative to os.getlogin()
| author | Andrew M. Kuchling <amk@amk.ca> |
|---|---|
| date | Mon, 03 Feb 2003 15:36:26 +0000 |
| parents | e204dff3fcbf |
| children | c49638305a28 |
line wrap: on
line diff
--- a/Doc/lib/libos.tex Mon Feb 03 15:29:34 2003 +0000 +++ b/Doc/lib/libos.tex Mon Feb 03 15:36:26 2003 +0000 @@ -141,7 +141,9 @@ \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}
