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 2020-03-08.05:37:54
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1583645874.4.0.316250511726.issue39899@roundup.psfhosted.org>
In-reply-to
Content
There are two reasons:

1. os.path.expanduser() returns the path unchanged when a home directory cannot be resolved, pathlib.Path.expanduser() raises an error. The latter behavior looks more robust, but we can't change os.path.expanduser().

2. os.path.expanduser() needs to split the path on components while pathlib.Path.expanduser() already has ready components. In some cases it may be more efficient.
History
Date User Action Args
2020-03-08 05:37:54serhiy.storchakasetrecipients: + serhiy.storchaka, barneygale
2020-03-08 05:37:54serhiy.storchakasetmessageid: <1583645874.4.0.316250511726.issue39899@roundup.psfhosted.org>
2020-03-08 05:37:54serhiy.storchakalinkissue39899 messages
2020-03-08 05:37:54serhiy.storchakacreate