This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

classification
Title: os.getlogin() documentation has misleading side note
Type: Stage: resolved
Components: Documentation Versions: Python 3.4, Python 3.5
process
Status: closed Resolution: fixed
Dependencies: Superseder:
Assigned To: docs@python Nosy List: Carlo, docs@python, python-dev
Priority: normal Keywords:

Created on 2014-08-30 12:23 by Carlo, last changed 2022-04-11 14:58 by admin. This issue is now closed.

Messages (2)
msg226139 - (view) Author: Carlo (Carlo) Date: 2014-08-30 12:23
The documentation for os.getlogin() says:

... ``pwd.getpwuid(os.getuid())[0]`` to get the login name of the currently effective user id

Either, os.getuid() should be changed to os.geteuid(), or the wording should be changed.
msg226155 - (view) Author: Roundup Robot (python-dev) (Python triager) Date: 2014-08-31 01:06
New changeset 59f2edeb8443 by Benjamin Peterson in branch '2.7':
getuid() returns real process id not effective (closes #22307)
http://hg.python.org/cpython/rev/59f2edeb8443

New changeset c30163548f64 by Benjamin Peterson in branch '3.4':
getuid() returns real process id not effective (closes #22307)
http://hg.python.org/cpython/rev/c30163548f64

New changeset 164a17eca081 by Benjamin Peterson in branch 'default':
merge 3.4 (closes #22307)
http://hg.python.org/cpython/rev/164a17eca081
History
Date User Action Args
2022-04-11 14:58:07adminsetgithub: 66503
2014-08-31 01:06:10python-devsetstatus: open -> closed

nosy: + python-dev
messages: + msg226155

resolution: fixed
stage: resolved
2014-08-30 12:23:21Carlocreate