Greg added the comment:
Here's a wording change in the documentation to clarify this.
--
keywords: +patch
nosy: +εσχατοκυριος
Added file: http://bugs.python.org/file35514/mywork.patch
___
Python tracker rep...@bugs.python.org
Roundup Robot added the comment:
New changeset 19172062e5c0 by Benjamin Peterson in branch '3.4':
specify that getuid() returns the real uid (closes #10503)
http://hg.python.org/cpython/rev/19172062e5c0
New changeset 6dfbe504f659 by Benjamin Peterson in branch '2.7':
specify that getuid()
Changes by Adam Woodbeck adam.woodb...@gmail.com:
--
nosy: +adam.woodbeck
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue10503
___
___
New submission from Giampaolo Rodola' g.rod...@gmail.com:
http://docs.python.org/library/os.html#os.getuid
os.getuid() documentation just states:
Return the current process’s user id.
It is not clear, however, whether user id refers to real, effective or saved
user id.
As per:
Giampaolo Rodola' g.rod...@gmail.com added the comment:
Update: I think also os.getlogin() doc is wrong.
This is what it states (2.7 doc):
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
R. David Murray rdmur...@bitdance.com added the comment:
These are wrappers around the posix functions. As such the unix man pages are
a better authority than the Python docs :) Still, we could certainly improve
the docs.
The getlogin error is probably a miscopy from the man page: the man
Giampaolo Rodola' g.rod...@gmail.com added the comment:
Indeed, now that I google for getlogin, it's not easy to figure out what kind
of user it is supposed to return exactly.
For getuid() it seems pretty clear that we're talking about _real_ uid, though.
http://www.manpagez.com/man/2/getuid/