Kaydet (Commit) 4b37364f authored tarafından Andrew M. Kuchling's avatar Andrew M. Kuchling

Bug #678077: Suggest alternative to os.getlogin()

üst da72d937
...@@ -141,7 +141,9 @@ Availability: \UNIX. ...@@ -141,7 +141,9 @@ Availability: \UNIX.
\begin{funcdesc}{getlogin}{} \begin{funcdesc}{getlogin}{}
Return the name of the user logged in on the controlling terminal of 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 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. Availability: \UNIX.
\end{funcdesc} \end{funcdesc}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment