mirror of
https://github.com/python/cpython
synced 2026-09-29 10:15:30 +03:00
Bug #678077: Suggest alternative to os.getlogin()
This commit is contained in:
parent
da72d9376b
commit
4b37364fc8
1 changed files with 3 additions and 1 deletions
|
|
@ -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}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue