mirror of https://github.com/python/cpython
Flesh out description of getlogin() and recommend against using it.
This commit is contained in:
parent
77f6ccd1f7
commit
403e351dfc
|
@ -139,8 +139,9 @@ Availability: \UNIX.
|
|||
\end{funcdesc}
|
||||
|
||||
\begin{funcdesc}{getlogin}{}
|
||||
Return the actual login name for the current process, even if there
|
||||
are multiple login names which map to the same user id.
|
||||
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.
|
||||
Availability: \UNIX.
|
||||
\end{funcdesc}
|
||||
|
||||
|
|
Loading…
Reference in New Issue