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 josh.r
Recipients josh.r
Date 2016-10-19.17:34:22
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1476898462.87.0.214098648021.issue28477@psf.upfronthosting.co.za>
In-reply-to
Content
os.path.expanduser supports both '~' and '~username` constructs to get home directories. It seems reasonable for pathlib.Path.home to default to getting the current user's home directory, but support passing an argument to get the home directory for another user. It means no need to use os.path.expanduser for the purpose (which always strikes me as a little "ugly" for portable code; the ~ works, but it's using UNIX syntax in a way that makes it feel non-portable), making pathlib a more complete replacement.
History
Date User Action Args
2016-10-19 17:34:22josh.rsetrecipients: + josh.r
2016-10-19 17:34:22josh.rsetmessageid: <1476898462.87.0.214098648021.issue28477@psf.upfronthosting.co.za>
2016-10-19 17:34:22josh.rlinkissue28477 messages
2016-10-19 17:34:22josh.rcreate