merge 3.4 (closes #22307)
This commit is contained in:
commit
c187f15bb7
|
@ -282,10 +282,10 @@ process and user.
|
|||
.. function:: 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 variables
|
||||
:envvar:`LOGNAME` or :envvar:`USERNAME` to find out who the user is, or
|
||||
``pwd.getpwuid(os.getuid())[0]`` to get the login name of the currently
|
||||
effective user id.
|
||||
process. For most purposes, it is more useful to use the environment
|
||||
variables :envvar:`LOGNAME` or :envvar:`USERNAME` to find out who the user
|
||||
is, or ``pwd.getpwuid(os.getuid())[0]`` to get the login name of the current
|
||||
real user id.
|
||||
|
||||
Availability: Unix, Windows.
|
||||
|
||||
|
|
Loading…
Reference in New Issue