The Python Oracle

Is there a portable way to get the current username in Python?

Become part of the top 3% of the developers by applying to Toptal https://topt.al/25cXVn

--

Music by Eric Matyas
https://www.soundimage.org
Track title: Dreamlands

--

Chapters
00:00 Question
00:40 Accepted answer (Score 1030)
01:20 Answer 2 (Score 158)
01:39 Answer 3 (Score 121)
01:51 Answer 4 (Score 99)
02:19 Thank you

--

Full question
https://stackoverflow.com/questions/8420...

Question links:
[pwd]: https://docs.python.org/3/library/pwd.ht...

Accepted answer links:
[getpass]: http://docs.python.org/library/getpass.h...

Answer 2 links:
[pwd]: http://docs.python.org/library/pwd.html

--

Content licensed under CC BY-SA
https://meta.stackexchange.com/help/lice...

--

Tags
#python #portability

#avk47