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, serhiy.storchaka
Date 2021-04-08.07:09:56
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1617865797.29.0.0400337593324.issue42998@roundup.psfhosted.org>
In-reply-to
Content
os.path.expanduser() has flaws.

1. It can return an argument unchanged if failed to determine the home directory.
2. On Unix it does not work for users not found in the local password database.
3. On Windows it only guess the home directory for other users. It does not work if you have home directory at nonstandard location (i.e. on other disk).

Until we fix these flaws it is better to not add flawed by design feature in pathlib.
History
Date User Action Args
2021-04-08 07:09:57serhiy.storchakasetrecipients: + serhiy.storchaka, barneygale
2021-04-08 07:09:57serhiy.storchakasetmessageid: <1617865797.29.0.0400337593324.issue42998@roundup.psfhosted.org>
2021-04-08 07:09:57serhiy.storchakalinkissue42998 messages
2021-04-08 07:09:56serhiy.storchakacreate