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 serhiy.storchaka
Recipients barneygale, eryksun, serhiy.storchaka, steve.dower
Date 2021-04-08.07:15:22
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1617866122.63.0.692657957848.issue39899@roundup.psfhosted.org>
In-reply-to
Content
AFAIK you can set arbitrary path as user home directory. So home directories of different users can even not be on the same disk, and the last component of the path can be different from the user name.

os.path.expanduser() has many flaws, and it just "guess" the home directory for other users. It is difficult to fix os.path.expanduser() due to backward compatibility, but we should do better in pathlib from start.
History
Date User Action Args
2021-04-08 07:15:22serhiy.storchakasetrecipients: + serhiy.storchaka, eryksun, steve.dower, barneygale
2021-04-08 07:15:22serhiy.storchakasetmessageid: <1617866122.63.0.692657957848.issue39899@roundup.psfhosted.org>
2021-04-08 07:15:22serhiy.storchakalinkissue39899 messages
2021-04-08 07:15:22serhiy.storchakacreate