The Python Oracle

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

--------------------------------------------------
Rise to the top 3% as a developer or hire one of them at Toptal: https://topt.al/25cXVn
--------------------------------------------------

Music by Eric Matyas
https://www.soundimage.org
Track title: Unforgiving Himalayas Looping

--

Chapters
00:00 Is There A Portable Way To Get The Current Username In Python?
00:31 Accepted Answer Score 1072
01:05 Answer 2 Score 172
01:24 Answer 3 Score 131
01:37 Answer 4 Score 111
02:05 Answer 5 Score 25
02:26 Thank you

--

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

--

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

--

Tags
#python #portability

#avk47