mirror of
https://github.com/python/cpython.git
synced 2025-09-14 12:46:49 +00:00
Flesh out description of getlogin() and recommend against using it.
This commit is contained in:
parent
77f6ccd1f7
commit
403e351dfc
1 changed files with 3 additions and 2 deletions
|
@ -139,8 +139,9 @@ Availability: \UNIX.
|
||||||
\end{funcdesc}
|
\end{funcdesc}
|
||||||
|
|
||||||
\begin{funcdesc}{getlogin}{}
|
\begin{funcdesc}{getlogin}{}
|
||||||
Return the actual login name for the current process, even if there
|
Return the name of the user logged in on the controlling terminal of
|
||||||
are multiple login names which map to the same user id.
|
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.
|
Availability: \UNIX.
|
||||||
\end{funcdesc}
|
\end{funcdesc}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue