[docs] [issue10503] os.getuid() documentation should be clear on what kind of uid it is referring
Giampaolo Rodola'
report at bugs.python.org
Mon Nov 22 14:42:44 CET 2010
Giampaolo Rodola' <g.rodola at 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 LOGNAME to find out who the user is, or
> pwd.getpwuid(os.getuid())[0] to get the login name of the currently
> effective user id.
Since os.getuid() refers to _real_ uid the last sentence should be changed as such:
- ... to get the login name of the currently effective user id.
+ ... to get the login name of the currently real user id.
----------
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue10503>
_______________________________________
More information about the docs
mailing list