[Python-checkins] cpython (3.4): getuid() returns real process id not effective (closes #22307)

benjamin.peterson python-checkins at python.org
Sun Aug 31 03:06:11 CEST 2014


http://hg.python.org/cpython/rev/c30163548f64
changeset:   92275:c30163548f64
branch:      3.4
parent:      92271:a058760cb069
user:        Benjamin Peterson <benjamin at python.org>
date:        Sat Aug 30 21:04:15 2014 -0400
summary:
  getuid() returns real process id not effective (closes #22307)

files:
  Doc/library/os.rst |  8 ++++----
  1 files changed, 4 insertions(+), 4 deletions(-)


diff --git a/Doc/library/os.rst b/Doc/library/os.rst
--- a/Doc/library/os.rst
+++ b/Doc/library/os.rst
@@ -281,10 +281,10 @@
 .. 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.
 

-- 
Repository URL: http://hg.python.org/cpython


More information about the Python-checkins mailing list