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.

Author barry
Recipients barry
Date 2018-01-24.15:37:19
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1516808239.87.0.467229070634.issue32651@psf.upfronthosting.co.za>
In-reply-to
Content
The documentation for os.getlogin() says:

"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 LOGNAME or 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."

Well, why not suggestion getpass.getuser() since that's exactly how the latter works? :)
History
Date User Action Args
2018-01-24 15:37:19barrysetrecipients: + barry
2018-01-24 15:37:19barrysetmessageid: <1516808239.87.0.467229070634.issue32651@psf.upfronthosting.co.za>
2018-01-24 15:37:19barrylinkissue32651 messages
2018-01-24 15:37:19barrycreate